public void performAction(CatalogServiceClient csClient) throws Exception {
FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { this.beanRepo }, false);
appContext.setClassLoader(new Serializer().getClassLoader());
appContext.refresh();
CatalogRepositoryFactory factory = (CatalogRepositoryFactory) appContext.getBean(this.beanId, CatalogRepositoryFactory.class);
CatalogRepository catalogRepository = factory.createRepository();
Set<Catalog> catalogs = catalogRepository.deserializeAllCatalogs();
System.out.println("Deserialized Catalogs: " + catalogs.toString());
for (Catalog catalog : catalogs) {
try {
System.out.println("Adding Catalog: " + catalog);
csClient.addCatalog(catalog);