PortletStatePersistenceManager producerPersistenceManager;
try {
JCRPersister persister = new JCRPersister(container, JCRPersister.PORTLET_STATES_WORKSPACE_NAME);
persister.initializeBuilderFor(JCRPortletStatePersistenceManager.mappingClasses);
producerPersistenceManager = new JCRPortletStatePersistenceManager(persister);
} catch (Exception e) {
log.debug("Couldn't instantiate PortletStatePersistenceManager", e);
throw new RuntimeException("Couldn't instantiate PortletStatePersistenceManager", e);
}