try {
if( getLocalCatalog() instanceof CatalogImpl){
CatalogImpl localCatalog = (CatalogImpl) getLocalCatalog();
File catalogFile = getLocalCatalogFile();
IServiceFactory serviceFactory = CatalogPlugin.getDefault().getServiceFactory();
localCatalog.loadFromFile(catalogFile, serviceFactory);
}
} catch (Throwable t) {
CatalogPlugin.log("Trouble restoring local catalog:"+t, t);
}
try {