}
else if(methodName.equals("handleCallback"))
{
// got a callback from remote server
InvokerCallbackHandler clientHandler = (InvokerCallbackHandler) clientListeners.get(sessionId);
clientHandler.handleCallback(new Callback(invocation.getParameter()));
}
else if(methodName.equals("testException") || methodName.equals("testThrowException"))
{
throw new Exception("Got call from client to throw exception. This is expected.");
}