code: public boolean hasException() {
          return Optional.ofNullable(commandResult)
                          .map(result -> StringUtils.hasText(result.getException()))
                          .orElse(false);
      }
docs: Check if reply code is set on this message.
  @return