@Services(provides = @ProvideService(WrapperService.class))
public class Activator extends BaseActivator {
@Override
protected void doStart() throws Exception {
WrapperService wrapperService = new WrapperServiceImpl();
register(WrapperService.class, wrapperService);
WrapperMBeanImpl wrapperMBean = new WrapperMBeanImpl();
wrapperMBean.setWrapperService(wrapperService);
registerMBean(wrapperMBean, "type=wrapper");