code: protected Properties getJdbcProperties(JdbcConnectionDescriptor jcd,
                                             String user, String password)
      {
          final Properties jdbcProperties;
          jdbcProperties = jcd.getConnectionPoolDescriptor().getJdbcProperties();
          if (user != null)
          {
              jdbcProperties.put("user", user);
              jdbcProperties.put("password", password);
          }
          return jdbcProperties;
      }
docs: Returns connection properties for passing to DriverManager, after merging
  JDBC driver-specific configuration settings with name/password from connection
  descriptor.
  @param jcd the connection descriptor with driver-specific settings
  @param user the jcd username (or null if not using authenticated login)
  @param password the jcd password (only used when user != null)
  @return merged properties object to pass to DriverManager