code: public ConnectionPoolDataSource getPooledDataSource(JdbcDatabase database)
      {
          com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource dataSource = new com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource();
          this.setDatasourceParams(database, dataSource);
          return dataSource;
      }
docs: Get and populate the pooled data source object for this database.
  @param database The JDBC database to create a connection to.
  @return The pooled datasource.