code: protected ProtocolKeyword potentiallyResolveCommand(String commandType) {
  
          try {
              return CommandType.valueOf(commandType);
          } catch (IllegalArgumentException e) {
              return new StringCommandType(commandType);
          }
      }
docs: Attempt to resolve the {@code commandType} against {@link CommandType}. This allows reuse of settings associated with the
  actual command type such as read-write routing. Subclasses may override this method.
  
  @param commandType must not be {@literal null}.
  @return the resolved {@link ProtocolKeyword}.
  @since 5.0.5