// tracking thread start/stop
Threads.addListener(new CatThreadListener(ctx));
File clientConfigFile = ctx.getAttribute("cat-client-config-file");
ClientConfigManager clientConfigManager = ctx.lookup(ClientConfigManager.class);
clientConfigManager.initialize(clientConfigFile);
// warm up Cat
Cat.getInstance().setContainer(((DefaultModuleContext) ctx).getContainer());
// bring up TransportManager
ctx.lookup(TransportManager.class);
if (clientConfigManager.isCatEnabled()) {
// start status update task
StatusUpdateTask statusUpdateTask = ctx.lookup(StatusUpdateTask.class);
Threads.forGroup("cat").start(statusUpdateTask);
LockSupport.parkNanos(10 * 1000 * 1000L); // wait 10 ms