ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte protocolVersion = CougarProtocol.getProtocolVersion(session);
final CougarObjectOutput out = objectIOFactory.newCougarObjectOutput(baos, protocolVersion);
// addObserver(correlationId, def.getReturnType(), observer);
marshaller.writeInvocationRequest(new InvocationRequest() {
@Override
public Object[] getArgs() {
return args;
}