public class SimpleModuleActivator implements ModuleActivator {
@Override
public void start(final ModuleContext context) throws Exception {
MBeanServer server = ServiceLocator.getRequiredService(context, MBeanServer.class);
SimpleModuleState moduleState = new SimpleModuleState() {
@Override
public String getResourceIdentity() {
return context.getModule().getIdentity().getCanonicalForm();
}