manager = new TomcatManager("", "", 0, "", 0, "", "");
SimpleRegistry simpleRegistry = new InMemoryRegistryImpl();
DeployDecoratorEventListener ddel = new DeployDecoratorEventListener(simpleRegistry, deployRootFile
.getAbsolutePath());
DeployPortletAppEventListener dpal = new DeployPortletAppEventListener(webAppsDir, new FileSystemPAM(
webAppsDir, portletRegistry, entityAccess, windowAccess, portletCache, manager), portletRegistry, portletFactory );
ArrayList eventListeners = new ArrayList(2);
eventListeners.add(ddel);
eventListeners.add(dpal);
// Use a -1 delay to disable auto scan