code: public static DataSource createDataSource(String url, String userName, String password) throws SQLException {
          try {
              return MjdbcPoolBinder.createDataSource(url, userName, password);
          } catch (NoClassDefFoundError ex) {
              throw new NoClassDefFoundError(ERROR_COULDNT_FIND_POOL_PROVIDER);
          }
      }
docs: Returns new Pooled {@link DataSource} implementation
  <p/>
  In case this function won't work - use {@link #createDataSource(java.util.Properties)}
  
  @param url      Database connection url
  @param userName Database user name
  @param password Database user password
  @return new Pooled {@link DataSource} implementation
  @throws SQLException