docs: private int nameToOutputIndex(String parameterName) throws SQLException {
      parameterMetadata.readMetadataFromDbIfRequired();
      for (int i = 0; i < parameterMetadata.getParameterCount(); i++) {
        String name = parameterMetadata.getName(i + 1);
        if (name != null && name.equalsIgnoreCase(parameterName)) {
          if (outputParameterMapper[i] == -1) {
            //this is not an outputParameter
            throw new SQLException("Parameter '" + parameterName
                + "' is not declared as output parameter with method registerOutParameter");
          }
          return outputParameterMapper[i];
        }
      }
      throw new SQLException("there is no parameter with the name " + parameterName);
    }