Environment environment = getCurrentEnvironment();
Long id = recording.begin(delegate, environment, (HttpServletRequest) request);
final HttpServletResponse innerResponse = (HttpServletResponse) response;
final int[] responseCode = {0};
innerResponse.addHeader(TRACE_HEADER_NAME,
basePath + "details?time=" + id + "&type=json");
InvocationHandler invocationHandler = new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {