RegistrationPersistenceManager registrationPersistenceManager;
try {
JCRPersister persister = new JCRPersister(container, JCRPersister.WSRP_WORKSPACE_NAME);
persister.initializeBuilderFor(JCRRegistrationPersistenceManager.mappingClasses);
registrationPersistenceManager = new JCRRegistrationPersistenceManager(persister);
} catch (Exception e) {
log.debug("Couldn't instantiate RegistrationPersistenceManager", e);
throw new RuntimeException("Couldn't instantiate RegistrationPersistenceManager", e);
}
RegistrationManager registrationManager = new RegistrationManagerImpl();