code: public static DataSource createDataSource(String url, String userName, String password) throws SQLException {
          assertNotNull(url);
          assertNotNull(userName);
          assertNotNull(password);
  
          BasicDataSource ds = new BasicDataSource();
          ds.setUrl(url);
          ds.setUsername(userName);
          ds.setPassword(password);
  
          return ds;
      }
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