break;
case FREE_VALUE:
session.freeValues(((FreeValueMessage) message).getRefIds());
break;
case INVOKE:
InvokeToClientMessage invokeMessage = (InvokeToClientMessage) message;
InvokeResult result = session.invoke(
invokeMessage.getMethodName(), invokeMessage.getThisValue(), invokeMessage.getArgValues());
sendMessage(new ReturnMessage(result.isException(), result.getValue()));
break;
case RETURN:
ReturnMessage returnMessage = (ReturnMessage) message;
if (returnMessageCallbacks.isEmpty()) {