code: public static DataSource createDataSource(Properties poolProperties) throws SQLException {
          assertNotNull(poolProperties);
  
          try {
              return BasicDataSourceFactory.createDataSource(poolProperties);
          } catch (Exception e) {
              throw new SQLException(e.getMessage());
          }
      }
docs: Returns new Pooled {@link DataSource} implementation
  
  @param poolProperties pool properties
  @return new Pooled {@link DataSource} implementation
  @throws SQLException