List<String> parameterValues = context.getParameterValues();
int len = parameterValues.size();
// resource method or sub-resource method or sub-resource locator
ResourceMethodMap<ResourceMethodDescriptor> rmm = resourceFactory.getObjectModel().getResourceMethods();
SubResourceMethodMap srmm = resourceFactory.getObjectModel().getSubResourceMethods();
SubResourceLocatorMap srlm = resourceFactory.getObjectModel().getSubResourceLocators();
if ((parameterValues.get(len - 1) == null || "/".equals(parameterValues.get(len - 1))) && rmm.size() > 0)
{
// resource method, then process HTTP method and consume/produce media types
List<ResourceMethodDescriptor> methods = new ArrayList<ResourceMethodDescriptor>();
boolean match = processResourceMethod(rmm, request, response, methods);