private final DeploymentLoader deploymentLoader;
private Assembler assembler;
private CoreContainerSystem containerSystem;
public TomcatWebAppBuilder() {
StandardServer standardServer = (StandardServer) ServerFactory.getServer();
globalListenerSupport = new GlobalListenerSupport(standardServer, this);
for (Service service : standardServer.findServices()) {
if (service.getContainer() instanceof Engine) {
Engine engine = (Engine) service.getContainer();
for (Container engineChild : engine.findChildren()) {
if (engineChild instanceof StandardHost) {
StandardHost host = (StandardHost) engineChild;