code: public Connection getConnection(String url, String username, String password) throws SQLException {
  		boolean alive = isConnectionAlive();
  		if (!alive) {
  			createConnection(url, username, password);
  		}
  		return connection;
  	}
docs: Retrieves the connection object. If the
  connection doesnt exist or is dead, it will attempt to create a new
  connection.