desc.setStandard(true);
desc
.setStoreFactoryClass("org.apache.catalina.storeconfig.StandardEngineSF");
desc.addTransientAttribute("domain");
registry.registerDescription(desc);
factory = new StandardEngineSF();
desc.setStoreFactory(factory);
factory.setRegistry(registry);
StoreDescription listenerdesc = registerDescriptor("Listener",
LifecycleListener.class);