// setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));
final XmlWebApplicationContext webApplicationContext = (XmlWebApplicationContext) WebApplicationContextUtils
.getWebApplicationContext(getServletContext());
final ConfigurableListableBeanFactory beanFactory = webApplicationContext.getBeanFactory();
beanFactory.autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
final LocalSessionFactoryBean localSessionFactoryBean = (LocalSessionFactoryBean) beanFactory.getBean("&sessionFactory");
final org.hibernate.cfg.Configuration hibernateConfiguration = localSessionFactoryBean.getConfiguration();
final PluginsRegistry pluginsRegistry = PluginsRegistry.instance();
pluginsRegistry.set(getResourceSettings());
projectForgeApp = ProjectForgeApp.init(beanFactory, hibernateConfiguration);
// Own error page for deployment mode and UserException and AccessException.
getRequestCycleListeners().add(new AbstractRequestCycleListener() {