code: public Connection getConnection() throws SQLException {
          Connection conn = null;
          if (driver != null) {
              Properties props = new Properties();
              if (userName != null) {
                  props.put("user", userName);
              }
              if (password != null) {
                  props.put("password", password);
              }
              conn = driver.connect(jdbcURL, props);
          }
          if (conn == null) {
              if (userName != null) {
                  conn = DriverManagerAccessor.getConnection(jdbcURL, userName, password);
              } else {
                  conn = DriverManagerAccessor.getConnection(jdbcURL);
              }
          }
          return conn;
      }
docs: Returns a Connection using the DriverManager and all
  set properties.