registry = new ResourceMethodRegistry(providerFactory);
Class subResourceClass = GetRestful.getSubResourceClass(target.getClass());
if (subResourceClass == null)
{
String msg = "Subresource for target class has no jax-rs annotations.: " + target.getClass().getName();
throw new InternalServerErrorException(msg);
}
registry.addResourceFactory(null, null, subResourceClass);
cachedSubresources.putIfAbsent(target.getClass(), registry);
}
ResourceInvoker invoker = registry.getResourceInvoker(request, response);