if (_bundleState.get() == null && _startLevel.get() != null && _packageAdmin.get() != null) {
registerMBean(BundleStateMBean.class.getName(), new BaseFactory<BundleStateMBean>() {
@Override
public BundleStateMBean create(PackageAdmin pa, StartLevel sl)
{
return new BundleState(ctx, pa, sl, logger);
}
}, BundleStateMBean.OBJECTNAME, _bundleState);
}
if (_framework.get() == null && _startLevel.get() != null && _packageAdmin.get() != null) {
registerMBean(FrameworkMBean.class.getName(), new BaseFactory<FrameworkMBean>() {