FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(
new String[] { this.beanRepo }, false);
appContext.setClassLoader(new Serializer().getClassLoader());
appContext.refresh();
CatalogRepositoryFactory factory = (CatalogRepositoryFactory) appContext
.getBean(this.catalogRepositoryId, CatalogRepositoryFactory.class);
CatalogRepository catalogRepository = factory.createRepository();
Set<Catalog> catalogs = catalogRepository.deserializeAllCatalogs();
printer.println("Deserialized Catalogs: " + catalogs.toString());
for (Catalog catalog : catalogs) {
printer.println("Adding Catalog: " + catalog);
getClient().addCatalog(catalog);