code: 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;
      }
docs: Gets the command result if any or tries to unmarshal String payload representation to an command result model.
  @return