Source:
public void handleGet(final RestRequest restRequest, final RestResponseChannel restResponseChannel) { long processingStartTime = System.currentTimeMillis(); long preProcessingTime = 0; handlePrechecks(restRequest, restResponseChannel); try { logger.trace("Handling GET request - {}", restRequest.getUri()); checkAvailable(); securityService.preProcessRequest(restRequest).get(); RestUtils.SubResource subresource = RestUtils.getBlobSubResource(restRequest); String operationOrBlobId = RestUtils.getOperationOrBlobIdFromUri(restRequest, subresource, frontendConfig.frontendPathPrefixesToRemove); if (operationOrBlobId.startsWith("/")) { operationOrBlobId = operationOrBlobId.substring(1); } if (operationOrBlobId.equalsIgnoreCase(Operations.GET_PEERS)) { getPeersHandler.handle(restRequest, restResponseChannel, (result, exception) -> submitResponse(restRequest, restResponseChannel, result, exception)); } else if (operationOrBlobId.endsWith(Operations.GET_SIGNED_URL)) { getSignedUrlHandler.handle(restRequest, restResponseChannel, (result, exception) -> submitResponse(restRequest, restResponseChannel, result, exception)); } else { GetBlobOptions options = RestUtils.buildGetBlobOptions(restRequest.getArgs(), subresource, RestUtils.getGetOption(restRequest)); GetCallback routerCallback = new GetCallback(restRequest, restResponseChannel, subresource, options); SecurityProcessRequestCallback securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel, routerCallback); boolean isSsl = restRequest.getSSLSession() != null; if (subresource != null) { logger.trace("Sub-resource requested: {}", subresource); if (subresource == SubResource.Replicas) { securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel); } } restRequest.getMetricsTracker() .injectMetrics(getRestRequestMetricsForGet(frontendMetrics, subresource, isSsl, false)); securityService.processRequest(restRequest, securityCallback); } preProcessingTime = System.currentTimeMillis() - processingStartTime; } catch (Exception e) { submitResponse(restRequest, restResponseChannel, null, extractExecutionExceptionCause(e)); } finally { frontendMetrics.getPreProcessingTimeInMs.update(preProcessingTime); } }

Target:
public void handleGet(final RestRequest restRequest, final RestResponseChannel restResponseChannel) { long processingStartTime = System.currentTimeMillis(); long preProcessingTime = 0; handlePrechecks(restRequest, restResponseChannel); try { logger.trace("Handling GET request - {}", restRequest.getUri()); checkAvailable(); securityService.preProcessRequest(restRequest).get(); RestUtils.SubResource subresource = RestUtils.getBlobSubResource(restRequest); String operationOrBlobId = RestUtils.getOperationOrBlobIdFromUri(restRequest, subresource, frontendConfig.frontendPathPrefixesToRemove); if (operationOrBlobId.startsWith("/")) { operationOrBlobId = operationOrBlobId.substring(1); } if (operationOrBlobId.equalsIgnoreCase(Operations.GET_PEERS)) { getPeersHandler.handle(restRequest, restResponseChannel, (result, exception) -> submitResponse(restRequest, restResponseChannel, result, exception)); } else if (operationOrBlobId.endsWith(Operations.GET_SIGNED_URL)) { getSignedUrlHandler.handle(restRequest, restResponseChannel, (result, exception) -> submitResponse(restRequest, restResponseChannel, result, exception)); } else { GetBlobOptions options = RestUtils.buildGetBlobOptions(restRequest.getArgs(), subresource, RestUtils.getGetOption(restRequest)); GetCallback routerCallback = new GetCallback(restRequest, restResponseChannel, subresource, options); SecurityProcessRequestCallback securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel, routerCallback); if (subresource == SubResource.Replicas) { securityCallback = new SecurityProcessRequestCallback(restRequest, restResponseChannel); } restRequest.getMetricsTracker() .injectMetrics( getRestRequestMetricsForGet(frontendMetrics, subresource, restRequest.getSSLSession() != null, false)); securityService.processRequest(restRequest, securityCallback); } preProcessingTime = System.currentTimeMillis() - processingStartTime; } catch (Exception e) { submitResponse(restRequest, restResponseChannel, null, extractExecutionExceptionCause(e)); } finally { frontendMetrics.getPreProcessingTimeInMs.update(preProcessingTime); } }