}
private void canAccessThisMBean(ServiceContext context, ObjectName objectName){
final ApplicationConfig config = context.getApplicationConfig();
final MBeanConfig configuredMBean =
config.findMBeanByObjectName(objectName.getCanonicalName());
AccessController.checkAccess(context,
ACLConstants.ACL_VIEW_APPLICATIONS);
if(configuredMBean != null)
AccessController.checkAccess(context,
ACLConstants.ACL_VIEW_MBEANS);