question: Connection openNewConnection ( ) throws SQLException { Connection newConn = DriverManager . getConnection ( url , user , password ) ; if ( url . startsWith ( "jdbc:derby:" ) ) { try ( Statement s = newConn . createStatement ( ) ) { } } else if ( url . startsWith ( "jdbc:hsqldb:" ) ) { try ( Statement s = newConn . createStatement ( ) ) { s . execute ( "SET WRITE_DELAY 1" ) ; } } return newConn ; }
target:  Open a new database connection. This connection must be closed by calling conn.close().