private <T extends CommandResultType> T getCommandResult() {
        if (commandResult == null) {
            if (getPayload() instanceof String) {
                this.commandResult = (T) marshaller.unmarshal(new StringSource(getPayload(String.class)));
            }
        }

        return (T) commandResult;
    }
private < T extends CommandResultType > T getCommandResult ( ) { if ( commandResult == null ) { if ( getPayload ( ) instanceof String ) { this . commandResult = ( T ) marshaller . unmarshal ( new StringSource ( getPayload ( String . class ) ) ) ; } } return ( T ) commandResult ; }
Gets the command result if any or tries to unmarshal String payload representation to an command result model.
@return