@Services(provides = @ProvideService(SystemService.class))
public class Activator extends BaseActivator {
@Override
protected void doStart() throws Exception {
SystemServiceImpl systemService = new SystemServiceImpl();
systemService.setBundleContext(bundleContext);
register(SystemService.class, systemService);
SystemMBeanImpl mbean = new SystemMBeanImpl();
mbean.setBundleContext(bundleContext);
mbean.setSystemService(systemService);