if (invoker instanceof ResourceMethod)
{
methods.add(new MethodMetaData(this, (ResourceMethod) invoker));
} else if(invoker instanceof ResourceLocator)
{
ResourceLocator locator = (ResourceLocator) invoker;
Method method = locator.getMethod();
Class<?> locatorType = method.getReturnType();
Class<?> locatorResourceType = GetRestful.getSubResourceClass(locatorType);
if (locatorResourceType == null)
{
// FIXME: we could generate an error for the client, which would be more informative than