public static Connection getConnection() {
    loadJdbcDriver();

    String datasource = getDataSource();

    if (connection == null) {
      try {
        connection = DriverManager.getConnection(datasource);
        System.out.println(datasource);
      } catch (SQLException e) {
        throw new RuntimeException(e);
      }
    }

    return connection;
  }