public void containerEvent(ContainerEvent event) {
if (event.getType() == Container.ADD_CHILD_EVENT) {
Container child = (Container) event.getData();
child.addLifecycleListener(this);
child.addContainerListener(this);
if (child instanceof Host) {
registerHost((Host) child);
} else if (child instanceof Context) {
registerContext((Context) child);
} else if (child instanceof Wrapper) {