public class ModuleActivatorA implements ModuleActivator {
@Override
public void start(final ModuleContext context) throws Exception {
MBeanServer server = ServiceLocator.getRequiredService(context, MBeanServer.class);
ModuleStateA moduleState = new ModuleStateA() {
@Override
public String getModuleState() {
return context.getModule().getState().toString();
}