// Take the tail of the request path, the tail will be requested path
// for lower resources, e. g. ResourceClass -> Sub-resource method/locator
String newRequestPath = getPathTail(parameterValues);
// save the resource class URI in hierarchy
context.addMatchedURI(requestPath.substring(0, requestPath.lastIndexOf(newRequestPath)));
context.setParameterNames(resourceFactory.getObjectModel().getUriPattern().getParameterNames());
// may thrown WebApplicationException
Object resource = resourceFactory.getInstance(context);
dispatch(request, response, context, resourceFactory, resource, newRequestPath);