{
MethodInvoker invoker;
Set<String> httpMethods = IsHttpMethod.getHttpMethods(method);
if ((httpMethods == null || httpMethods.size() == 0) && method.isAnnotationPresent(Path.class) && method.getReturnType().isInterface())
{
invoker = new SubResourceInvoker(baseUri, method, config);
}
else
{
invoker = ProxyFactory.createClientInvoker(iface, method, baseUri, config);
}