Source:
private OgcMessage getOgcRequest(MutableHttpServletRequest mutableRequest) throws InterceptorException { OgcMessage ogcRequest = new OgcMessage(); String requestService = getRequestParameterValue( mutableRequest, OgcNaming.PARAMETER_SERVICE); String requestOperation = getRequestParameterValue( mutableRequest, OgcNaming.PARAMETER_OPERATION); String requestLayer = getRequestParameterValue( mutableRequest, OgcNaming.PARAMETER_ENDPOINT); InterceptorRule mostSpecificRequestRule = getMostSpecificRule(requestService, requestOperation, requestLayer, "REQUEST"); InterceptorRule mostSpecificResponseRule = getMostSpecificRule(requestService, requestOperation, requestLayer, "RESPONSE"); if (StringUtils.isNoneEmpty(requestService)) { ogcRequest.setService(requestService); } else { LOG.debug("No service found."); } if (StringUtils.isNoneEmpty(requestOperation)) { ogcRequest.setOperation(requestOperation); } else { LOG.debug("No operation found."); } if (StringUtils.isNoneEmpty(requestLayer)) { ogcRequest.setEndPoint(requestLayer); } else { LOG.debug("No endPoint found."); } if (mostSpecificRequestRule != null) { ogcRequest.setRequestRule(mostSpecificRequestRule.getRule()); } else { LOG.debug("No interceptor rule found for the request."); } if (mostSpecificResponseRule != null) { ogcRequest.setResponseRule(mostSpecificResponseRule.getRule()); } else { LOG.debug("No interceptor rule found for the response."); } if (StringUtils.isEmpty(requestService) && StringUtils.isEmpty(requestOperation) && StringUtils.isEmpty(requestLayer)) { throw new InterceptorException("Couldn't find all required OGC " + "parameters (SERVICE, REQUEST, LAYER). Please check the " + "validity of the request."); } return ogcRequest; }

Target:
private OgcMessage getOgcRequest(MutableHttpServletRequest mutableRequest) throws InterceptorException, IOException { OgcMessage ogcRequest = new OgcMessage(); String requestService = getRequestParameterValue( mutableRequest, OgcNaming.PARAMETER_SERVICE); String requestOperation = getRequestParameterValue( mutableRequest, OgcNaming.PARAMETER_OPERATION); String requestEndPoint = getRequestParameterValue( mutableRequest, OgcNaming.PARAMETER_ENDPOINT); InterceptorRule mostSpecificRequestRule = getMostSpecificRule(requestService, requestOperation, requestEndPoint, "REQUEST"); InterceptorRule mostSpecificResponseRule = getMostSpecificRule(requestService, requestOperation, requestEndPoint, "RESPONSE"); if (StringUtils.isNotEmpty(requestService)) { ogcRequest.setService(requestService); } else { LOG.debug("No service found."); } if (StringUtils.isNotEmpty(requestOperation)) { ogcRequest.setOperation(requestOperation); } else { LOG.debug("No operation found."); } if (StringUtils.isNotEmpty(requestEndPoint)) { ogcRequest.setEndPoint(requestEndPoint); } else { LOG.debug("No endPoint found."); } if (mostSpecificRequestRule != null) { ogcRequest.setRequestRule(mostSpecificRequestRule.getRule()); } else { LOG.debug("No interceptor rule found for the request."); } if (mostSpecificResponseRule != null) { ogcRequest.setResponseRule(mostSpecificResponseRule.getRule()); } else { LOG.debug("No interceptor rule found for the response."); } if (StringUtils.isEmpty(requestService) && StringUtils.isEmpty(requestOperation) && StringUtils.isEmpty(requestEndPoint)) { throw new InterceptorException("Couldn't find all required OGC " + "parameters (SERVICE, REQUEST, ENDPOINT). Please check the " + "validity of the request."); } return ogcRequest; }