//
// Load/create Handlers.
//
NetUIConfig netuiConfig = ConfigUtil.getConfig();
PageFlowHandlersConfig handlers = netuiConfig.getPageFlowHandlers();
DefaultHandler defaultActionForwardHandler = new DefaultActionForwardHandler( servletContext );
DefaultHandler defaultExceptionsHandler = new DefaultExceptionsHandler( servletContext );
DefaultHandler defaultForwardRedirectHandler = new DefaultForwardRedirectHandler( servletContext );
DefaultHandler defaultLoginHandler = new DefaultLoginHandler( servletContext );
DefaultHandler defaultStorageHandler = new DeferredSessionStorageHandler( servletContext );
DefaultHandler defaultReloadableClassHandler = new DefaultReloadableClassHandler( servletContext );
_actionForwardHandler = ( ActionForwardHandler )
adaptHandler( handlers != null ? handlers.getActionForwardHandlers() : null,
defaultActionForwardHandler, ActionForwardHandler.class, servletContext );
_exceptionsHandler = ( ExceptionsHandler )
adaptHandler( handlers != null ? handlers.getExceptionsHandlers() : null, defaultExceptionsHandler,
ExceptionsHandler.class, servletContext );
_forwardRedirectHandler = ( ForwardRedirectHandler )
adaptHandler( handlers != null ? handlers.getForwardRedirectHandlers() : null,
defaultForwardRedirectHandler, ForwardRedirectHandler.class, servletContext );
_loginHandler = ( LoginHandler )
adaptHandler( handlers != null ? handlers.getLoginHandlers() : null, defaultLoginHandler,
LoginHandler.class, servletContext );
_storageHandler = ( StorageHandler )
adaptHandler( handlers != null ? handlers.getStorageHandlers() : null, defaultStorageHandler,
StorageHandler.class, servletContext );
_reloadableClassHandler = ( ReloadableClassHandler )
adaptHandler( handlers != null ? handlers.getReloadableClassHandlers() : null,
defaultReloadableClassHandler, ReloadableClassHandler.class, servletContext );
}