private boolean verifyMigrateFromProductHome(String migrateFromProductHome) throws InstallException {
  if (migrateFromProductHome == null || migrateFromProductHome.length() == 0) {
    Debug.log("MultipleMigrateDriver.verifyMigrateFromProductHome() :" + "empty product home by the user");
    Console.println(LocalizedMessage.get(LOC_HR_MSG_MIGRATE_NONE_FOUND));
    return false;
  }
  if (!migrateFromProductHome.equals(ConfigUtil.getHomePath())) {
    Debug.log("MultipleMigrateDriver.verifyMigrateFromProductHome() : " + "Migrate from product home: " + migrateFromProductHome + ", New product home: "+ ConfigUtil.getHomePath());
    String translateFile=migrateFromProductHome + MigrateFromInstFinderStore.getRelativeTranslateFile();
    if (!FileUtils.isFileValid(translateFile)) {
      Console.println(LocalizedMessage.get(LOC_HR_MSG_MIGRATE_NONE_FOUND));
      return false;
    }
  }
 else {
    Debug.log("MultipleMigrateDriver - Error:" + "This product has been already migrated!");
    throw new InstallException(LocalizedMessage.get(LOC_DR_ERR_PRODUCT_ALREADY_MIGRATED));
  }
  return true;
}

private boolean verifyMigrateFromProductHome ( String migrateFromProductHome ) throws InstallException { if ( migrateFromProductHome == null || migrateFromProductHome . length ( ) == 0 ) { Debug . log ( "MultipleMigrateDriver.verifyMigrateFromProductHome() :" + "empty product home by the user" ) ; Console . println ( LocalizedMessage . get ( LOC_HR_MSG_MIGRATE_NONE_FOUND ) ) ; return false ; } if ( ! migrateFromProductHome . equals ( ConfigUtil . getHomePath ( ) ) ) { Debug . log ( "MultipleMigrateDriver.verifyMigrateFromProductHome() : " + "Migrate from product home: " + migrateFromProductHome + ", New product home: " + ConfigUtil . getHomePath ( ) ) ; String translateFile = migrateFromProductHome + MigrateFromInstFinderStore . getRelativeTranslateFile ( ) ; if ( ! FileUtils . isFileValid ( translateFile ) ) { Console . println ( LocalizedMessage . get ( LOC_HR_MSG_MIGRATE_NONE_FOUND ) ) ; return false ; } } else { Debug . log ( "MultipleMigrateDriver - Error:" + "This product has been already migrated!" ) ; throw new InstallException ( LocalizedMessage . get ( LOC_DR_ERR_PRODUCT_ALREADY_MIGRATED ) ) ; } return true ; }
check if the product home input by the user has the locator file of the product to be migrated from .
