code: public DataSource openPooledDataSource(DBType aDbType, String aDbUrl, String aUsername, String aPassword) throws SQLException {
          
          final DataSource unPooledDS = DataSources.unpooledDataSource(aDbUrl, aUsername, aPassword);
  
          //override the default properties with ours
          final Map<String, String> props = this.getPoolingProperties(aDbType);
  
          return DataSources.pooledDataSource(unPooledDS, props);
  
      }
docs: get the pooled datasource from c3p0 pool
  
  @param aDbType   a supported database type.
  @param aDbUrl    a connection url
  @param aUsername a username for the database
  @param aPassword a password for the database connection
  @return a DataSource  a pooled data source
  @throws SQLException