* Init the advanced configuration subsystem based in the Factory trees.
*/
protected void initFactory() {
if (Application.lookup().getGlobalFactory() == null) {
String factoryCfgDir = Application.lookup().getBaseCfgDirectory() + "/" + FACTORY_CONFIG_DIR;
Factory factory = Factory.getFactory(new File(factoryCfgDir));
if (factory != null) Application.lookup().setGlobalFactory(factory);
}
ComponentsContextManager.addComponentStorage(Component.SCOPE_REQUEST, new RequestComponentsStorage());
ComponentsContextManager.addComponentStorage(Component.SCOPE_PANEL_SESSION, new PanelSessionComponentsStorage());
ComponentsContextManager.addComponentStorage(Component.SCOPE_SESSION, new SessionComponentsStorage());