public Message postProcess(MessageProcessingContext context, Message inputMessage, Message outputMessage) {
        if (inputMessage instanceof CommandMessage && ((CommandMessage) inputMessage).getOperation() == CommandMessage.LOGIN_OPERATION) {
            if (SUCCESS_MSG.equals(outputMessage.getBody())) {
                outputMessage.setBody(getAuthenticationResult());
            }
        }
        return outputMessage;
    }
public Message postProcess ( MessageProcessingContext context , Message inputMessage , Message outputMessage ) { if ( inputMessage instanceof CommandMessage && ( ( CommandMessage ) inputMessage ) . getOperation ( ) == CommandMessage . LOGIN_OPERATION ) { if ( SUCCESS_MSG . equals ( outputMessage . getBody ( ) ) ) { outputMessage . setBody ( getAuthenticationResult ( ) ) ; } } return outputMessage ; }
{@inheritDoc}