wro4j-core/src/main/java/ro/isdc/wro/http/WroContextFilter.java
public final void doFilter(final ServletRequest req, final ServletResponse res, final FilterChain chain)
      throws IOException, ServletException {
    final HttpServletRequest request = (HttpServletRequest) req;
    final HttpServletResponse response = (HttpServletResponse) res;
    //preserve current correlationId to ensure proper clean up during nested requests.
    final String originalCorrelationId = Context.isContextSet() ? Context.getCorrelationId() : null;
    Context.set(Context.webContext(request, response, this.filterConfig), getWroConfiguration());
    final String correlationId = Context.getCorrelationId();
    try {
      chain.doFilter(request, response);
    } finally {
      Context.setCorrelationId(correlationId);
      Context.unset();
      if (originalCorrelationId != null) {
        Context.setCorrelationId(originalCorrelationId);
      }
    }
  }
public final void doFilter(final ServletRequest req, final ServletResponse res, final FilterChain chain)
      throws IOException, ServletException {
    final HttpServletRequest request = (HttpServletRequest) req;
    final HttpServletResponse response = (HttpServletResponse) res;
    //preserve current correlationId to ensure proper clean up during nested requests.
    final String originalCorrelationId = Context.isContextSet() ? Context.getCorrelationId() : null;
    Context.set(Context.webContext(request, response, this.filterConfig), getWroConfiguration());
    final String correlationId = Context.getCorrelationId();
    try {
      chain.doFilter(request, response);
    } finally {
      Context.setCorrelationId(correlationId);
      Context.unset();
      if (originalCorrelationId != null) {
        Context.setCorrelationId(originalCorrelationId);
      }
    }
  }
{@inheritDoc}