return method;
}
private ProxyHandler createReflectionHandler(JavaMethod method)
{
ProxyHandler handler = new ReflectionProxyHandler();
// TODO why was this here?
// String action = method.getName().getNamespaceURI();
// if (!action.endsWith("/"))
// action += '/';
//
// action += method.getName().getLocalPart();
// handler.setAction(action);
handler.setAction(method.getActionURI());
handler.setRequestName(method.getName());
handler.setRequestParameterNames(method.getParameterTypeNames());
handler.setRequestParameterSchemaTypes(method.getParameterSchemaTypes());
handler.setRequestParameterTypes(method.getParameterTypes());
handler.setResponseName(method.getReturnName());
handler.setReturnSchemaType(method.getReturnSchemaType());
handler.setReturnType(method.getReturnType());
return handler;
}