AsyncCallback theCallback = (AsyncCallback) args[args.length-1];
/*
* Wrap the Method (and Method arguments)
*/
GwtRpcCommLayerPojoRequest pojoRequest = new GwtRpcCommLayerPojoRequest();
//pojoRequest.setMethodName(method.getName());
pojoRequest.setMethod(method);
if ( args != null )
{
for (Object object : args)
{
if ( object != theCallback )//the last object is always going to be the callback implementation
{
pojoRequest.getMethodParameters().add( (Serializable) object);
}
}
}
/*