{
String test = (String) invocation.getParameter();
if (test.equals(SYNCHRONOUS_TEST))
{
log.info("making synchronous callback");
callbackHandler.handleCallback(new Callback(test));
log.info("made synchronous callback");
}
else if (test.equals(ASYNCHRONOUS_SERVER_SIDE_TEST))
{
log.info("making asynchronous callback - server side");
callbackHandler.handleCallbackOneway(new Callback("callback"), true);
}
else if (test.equals(ASYNCHRONOUS_CLIENT_SIDE_TEST))
{
log.info("making asynchronous callback - client side");
callbackHandler.handleCallbackOneway(new Callback("callback"));
}
else if (test.equals(GET_STATUS))
{
synchronized (this)
{