question: public Connection initEmbeddedDBConnectionRestoreFromBackup ( String backedUpDBLocation ) throws AdeException { final String dbLocation = System . getProperty ( "derby.system.home" ) ; final String connectionUrl = PROTOCOL + DEFAULT_DBNAME + ";rollForwardRecoveryFrom=" + backedUpDBLocation + File . separator + dbName ; mLogger . debug ( "Loading driver " + DRIVER ) ; try { Class . forName ( DRIVER ) ; } catch ( ClassNotFoundException e ) { throw new AdeInternalException ( "Loading driver failed" , e ) ; } mLogger . info ( "Connecting to database " + connectionUrl + " in location " + dbLocation + " to restore from backup." ) ; Connection con ; try { con = DriverManager . getConnection ( connectionUrl ) ; if ( con != null ) { try { con . commit ( ) ; } catch ( SQLException e ) { mLogger . error ( "The restored connection could not be closed." , e ) ; throw new AdeExtUsageException ( "The connection could not be closed." , e ) ; } finally { closeEmbeddedDBConnection ( ) ; } } } catch ( SQLException e ) { throw new AdeInternalException ( "Failed obtaining connection" , e ) ; } return con ; }
target:  Restores the primary DB from a given backed-up location. Then, reinitializes the connection.