mailSender.setPort(2525);
mailSender.setHost("localhost");
}
protected static FacesContext performFacesContextConfig() {
StartupServletContextListener facesListener =
new StartupServletContextListener();
ServletContextEvent event = new ServletContextEvent(servletContext);
facesListener.contextInitialized(event);
LifecycleFactory lifecycleFactory =
(LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = lifecycleFactory.getLifecycle(getLifecycleId());
FacesContextFactory facesCtxFactory =