public static boolean restore(){
  File restoreConfig=new File(RESTORATION_PROPERTIES);
  if (restoreConfig.exists() && restoreConfig.isFile()) {
    logger.info("Performing restoration DHuS system...");
    try (FileInputStream stream=new FileInputStream(restoreConfig)){
      Properties properties=new Properties();
      properties.load(stream);
      restoreDatabase(properties);
      restoreSolrIndex(properties);
    }
 catch (    UnsupportedOperationException e) {
      logger.error("Incomplete DHuS restoration file.",e);
      System.setProperty("Archive.check","true");
    }
catch (    Exception e) {
      logger.fatal("Restoration failure.",e);
      return false;
    }
 finally {
      restoreConfig.delete();
    }
  }
  return true;
}

public static boolean restore ( ) { File restoreConfig = new File ( RESTORATION_PROPERTIES ) ; if ( restoreConfig . exists ( ) && restoreConfig . isFile ( ) ) { logger . info ( "Performing restoration DHuS system..." ) ; try ( FileInputStream stream = new FileInputStream ( restoreConfig ) ) { Properties properties = new Properties ( ) ; properties . load ( stream ) ; restoreDatabase ( properties ) ; restoreSolrIndex ( properties ) ; } catch ( UnsupportedOperationException e ) { logger . error ( "Incomplete DHuS restoration file." , e ) ; System . setProperty ( "Archive.check" , "true" ) ; } catch ( Exception e ) { logger . fatal ( "Restoration failure." , e ) ; return false ; } finally { restoreConfig . delete ( ) ; } } return true ; }
restores dhus in a previous state .
