/* Communicate shutdown to listeners (mandatory before reopening for restore) */
DBManager.getDefault().shutdown();
/* Open new empty DB for restore */
if (!needsEmergencyStartup)
DBManager.getDefault().startup(new LongOperationMonitor(new NullProgressMonitor()) {}, true, true);
/* Otherwise if startup is needed, startup with empty DB */
else
InternalOwl.getDefault().startup(new LongOperationMonitor(new NullProgressMonitor()) {}, true, true);
/* Reindex on next startup */
InternalOwl.getDefault().getPersistenceService().getModelSearch().reIndexOnNextStartup();
Activator.safeLogInfo(needsEmergencyStartup ? "End: Recreate Profile with OPML Import" : "End: Start Over with Fresh Profile"); //$NON-NLS-1$ //$NON-NLS-2$