if (cmdl.hasOption("file")) {
File backup = checkRestoreFile(file);
dropDB(connectionProperties);
shutdownScheduledJobs(ctxName);
ImportInitvalues importInit = getApplicationContext(ctxName).getBean(ImportInitvalues.class);
importInit.loadSystem(langPath, cfg, force);
restoreOm(ctxName, backup);
} else {
AdminUserDetails admin = checkAdminDetails(ctxName, langPath);
dropDB(connectionProperties);
shutdownScheduledJobs(ctxName);
ImportInitvalues importInit = getApplicationContext(ctxName).getBean(ImportInitvalues.class);
importInit.loadAll(langPath, cfg, admin.login, admin.pass, admin.email, admin.group, admin.tz, force);
}
File installerFile = new File(new File(omHome, ScopeApplicationAdapter.configDirName), InstallationDocumentHandler.installFileName);
InstallationDocumentHandler.getInstance().createDocument(installerFile.getAbsolutePath(), 3);
} catch(Exception e) {