Source:
public void handleGet(RestRequest restRequest, RestResponseChannel restResponseChannel) { long processingStartTime = System.currentTimeMillis(); long preProcessingTime = 0; handlePrechecks(restRequest, restResponseChannel); try { logger.trace("Handling GET request - {}", restRequest.getUri()); checkAvailable(); RestUtils.SubResource subresource = RestUtils.getBlobSubResource(restRequest); RestRequestMetrics requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getBlobSSLMetrics : adminMetrics.getBlobMetrics; GetCallback routerCallback = new GetCallback(restRequest, restResponseChannel, subresource); SecurityProcessRequestCallback securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel, routerCallback); if (subresource != null) { logger.trace("Sub-resource requested: {}", subresource); switch (subresource) { case BlobInfo: requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getBlobInfoMetrics : adminMetrics.getBlobInfoMetrics; break; case UserMetadata: requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getUserMetadataSSLMetrics : adminMetrics.getUserMetadataMetrics; break; case Replicas: requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getReplicasMetrics : adminMetrics.getReplicasMetrics; securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel); break; } } restRequest.getMetricsTracker().injectMetrics(requestMetrics); preProcessingTime = System.currentTimeMillis() - processingStartTime; securityService.processRequest(restRequest, securityCallback); } catch (Exception e) { submitResponse(restRequest, restResponseChannel, null, e); } finally { adminMetrics.getPreProcessingTimeInMs.update(preProcessingTime); } }

Target:
public void handleGet(RestRequest restRequest, RestResponseChannel restResponseChannel) { long processingStartTime = System.currentTimeMillis(); long preProcessingTime = 0; handlePrechecks(restRequest, restResponseChannel); try { logger.trace("Handling GET request - {}", restRequest.getUri()); checkAvailable(); RestUtils.SubResource subresource = RestUtils.getBlobSubResource(restRequest); RestRequestMetrics requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getBlobSSLMetrics : adminMetrics.getBlobMetrics; GetCallback routerCallback = new GetCallback(restRequest, restResponseChannel, subresource); SecurityProcessRequestCallback securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel, routerCallback); if (subresource != null) { logger.trace("Sub-resource requested: {}", subresource); switch (subresource) { case BlobInfo: requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getBlobInfoSSLMetrics : adminMetrics.getBlobInfoMetrics; break; case UserMetadata: requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getUserMetadataSSLMetrics : adminMetrics.getUserMetadataMetrics; break; case Replicas: requestMetrics = restRequest.getSSLSession() != null ? adminMetrics.getReplicasSSLMetrics : adminMetrics.getReplicasMetrics; securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel); break; } } restRequest.getMetricsTracker().injectMetrics(requestMetrics); preProcessingTime = System.currentTimeMillis() - processingStartTime; securityService.processRequest(restRequest, securityCallback); } catch (Exception e) { submitResponse(restRequest, restResponseChannel, null, e); } finally { adminMetrics.getPreProcessingTimeInMs.update(preProcessingTime); } }