} else if (source instanceof Service) {
Service service = (Service) source;
Engine engine = (Engine) service.getContainer();
engine.removeContainerListener(this);
((Lifecycle) engine).removeLifecycleListener(this);
for (Container host : engine.findChildren()) {
host.removeContainerListener(this);
mapper.removeHost(host.getName());
for (Container context : host.findChildren()) {
((Lifecycle) context).removeLifecycleListener(this);
mapper.removeContext(host.getName(), context.getName());