final ServletPathFinder pathFinder = new ServletPathFinder(servletContext);
// initialize each JeevesEngine now
for (String node : JeevesContextLoaderListener.getNodeIds(servletContext)) {
if (!node.trim().isEmpty()) {
JeevesApplicationContext jeevesAppContext = (JeevesApplicationContext) servletContext.getAttribute(
User.NODE_APPLICATION_CONTEXT_KEY + node.trim());
jeevesAppContext.setServletConfig(getServletConfig());
jeevesAppContext.getBean(JeevesEngine.class).init(pathFinder.getAppPath(), pathFinder.getConfigPath(),
pathFinder.getBaseUrl(), this);
}
}