@Override public ConnectionPoolDataSource createConnectionPoolDataSource(Properties properties) throws SQLException {
  Properties propertiesCopy=new Properties();
  if (properties != null) {
    propertiesCopy.putAll(properties);
  }
  rejectUnsupportedOptions(propertiesCopy);
  rejectPoolingOptions(propertiesCopy);
  JdbcDataSource dataSource=new JdbcDataSource();
  setupH2DataSource(dataSource,propertiesCopy);
  return dataSource;
}

@ Override public ConnectionPoolDataSource createConnectionPoolDataSource ( Properties properties ) throws SQLException { Properties propertiesCopy = new Properties ( ) ; if ( properties != null ) { propertiesCopy . putAll ( properties ) ; } rejectUnsupportedOptions ( propertiesCopy ) ; rejectPoolingOptions ( propertiesCopy ) ; JdbcDataSource dataSource = new JdbcDataSource ( ) ; setupH2DataSource ( dataSource , propertiesCopy ) ; return dataSource ; }
creates a pooled data source .
