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