public void handleCallback(Callback callback) throws HandleCallbackException
{
if (!(callback.getParameter() instanceof RemoteInvocation))
throw new HandleCallbackException("invalid request format: expecting RemoteInvocation");
RemoteInvocation request = (RemoteInvocation) callback.getParameter();
String methodName = request.getMethodName();
Object[] args = request.getParameters();
if (methodName.equals("send"))
send(args);
else if (methodName.equals("sendMultiple"))