HyperionResponse response = phaseContext.getEndpointResponse();
UriRequestResult uriRequestResult = uriParser.parseRequestUri(request.getResourceUri());
if(uriRequestResult == null)
throw new NotFoundException(String.format("%s is not recognized.",request.getResourceUri()));
String entityName = uriRequestResult.getEndpoint();
EntityPlugin plugin = serviceRegistry.getPluginForName(entityName);
if(plugin == null)
throw new NotFoundException(String.format("%s is not a valid entity.",entityName));
phaseContext.setEntityPlugin(plugin);
phaseContext.setRequestMethod(getHttpMethod(request.getRequestMethod()));
String requestMethod = getEffectiveMethod(request);