Can i do this:
session.addMessageHandler(new MessageHandler.Partial<byte[]>() {
@Override
public void onMessage(byte[] partialMessage, boolean last) {
EendpoitProxy.this.message = partialMessage;
session.sendObject(processHandler());
}
});
processHandler(){
// invoke original method
}