code: public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props) throws SQLException {
          if (props == null) props = new Properties();
          ConnectionPoolDataSource dataSource = newConnectionPoolDataSource();
          setBeanProperties(dataSource, props);
          return dataSource;
      }
docs: Create a ConnectionPoolDataSource object.
  
  @param props The properties that define the ConnectionPoolDataSource implementation to create and how the
  ConnectionPoolDataSource is configured
  @return The configured ConnectionPoolDataSource
  @throws SQLException If the data source cannot be created