Source:
<code>public void handle(ChannelHandlerContext ctx, FullHttpRequest request) { Tracker.getInstance().track(request); if ( !mediaTypeChecker.isAcceptValid(request.headers()) ) { DefaultHandler.sendResponse(ctx, request, String.format("Unsupported media type for Content-Type: %s", request.headers().get(HttpHeaders.Names.CONTENT_TYPE)), HttpResponseStatus.UNSUPPORTED_MEDIA_TYPE ); <START> return; <END> } final String tenantId = request.headers().get("tenantId"); HttpResponseStatus status = HttpResponseStatus.OK; ObjectMapper objectMapper = new ObjectMapper(); String responseBody = null; final Timer.Context httpEventsFetchTimerContext = httpEventsFetchTimer.time(); try { HttpRequestWithDecodedQueryParams requestWithParams = (HttpRequestWithDecodedQueryParams) request; Map<String, List<String>> params = requestWithParams.getQueryParams(); if (params == null || params.size() == 0) { throw new InvalidDataException("Query should contain at least one query parameter"); } parseDateFieldInQuery(params, "from"); parseDateFieldInQuery(params, "until"); List<Map<String, Object>> searchResult = searchIO.search(tenantId, params); responseBody = objectMapper.writeValueAsString(searchResult); } catch (InvalidDataException e) { log.error(String.format("Exception %s", e.toString())); responseBody = String.format("Error: %s", e.getMessage()); status = HttpResponseStatus.BAD_REQUEST; } catch (Exception e) { log.error(String.format("Exception %s", e.toString())); responseBody = String.format("Error: %s", e.getMessage()); status = HttpResponseStatus.INTERNAL_SERVER_ERROR; } finally { DefaultHandler.sendResponse(ctx, request, responseBody, status, null); httpEventsFetchTimerContext.stop(); } }</code><technical_language>call httpEventsFetchTimerContext.stop() line 72 get executed</technical_language>

Target:
public void handle(ChannelHandlerContext ctx, FullHttpRequest request) { Tracker.getInstance().track(request); final String tenantId = request.headers().get("tenantId"); HttpResponseStatus status = HttpResponseStatus.OK; ObjectMapper objectMapper = new ObjectMapper(); String responseBody = null; final Timer.Context httpEventsFetchTimerContext = httpEventsFetchTimer.time(); try { HttpRequestWithDecodedQueryParams requestWithParams = (HttpRequestWithDecodedQueryParams) request; Map<String, List<String>> params = requestWithParams.getQueryParams(); if (params == null || params.size() == 0) { throw new InvalidDataException("Query should contain at least one query parameter"); } parseDateFieldInQuery(params, "from"); parseDateFieldInQuery(params, "until"); List<Map<String, Object>> searchResult = searchIO.search(tenantId, params); responseBody = objectMapper.writeValueAsString(searchResult); } catch (InvalidDataException e) { log.error(String.format("Exception %s", e.toString())); responseBody = String.format("Error: %s", e.getMessage()); status = HttpResponseStatus.BAD_REQUEST; } catch (Exception e) { log.error(String.format("Exception %s", e.toString())); responseBody = String.format("Error: %s", e.getMessage()); status = HttpResponseStatus.INTERNAL_SERVER_ERROR; } finally { DefaultHandler.sendResponse(ctx, request, responseBody, status, null); httpEventsFetchTimerContext.stop(); } }