String contentTypeStr = contentType != null ?
contentType.getValue() : inferContentType();
boolean eprFound = false;
if (endpointsConfiguration != null) {
URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
if (epr != null) {
eprFound = true;
String type = TransportUtils.getContentType(contentTypeStr, msgContext);
msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);
epr.setParameters(msgContext);
Builder builder = epr.getBuilder(type);
RESTUtil.processGetAndDeleteRequest(
msgContext, os, request.getRequestLine().getUri(),
request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
method, isRestDispatching);
}