/**
  * Gets the MBean info.
  *
  * @param jvm The active JVM
  * @param objectName The object name
  * @return The MBean info
  */
 private static MBeanInfo getMBeanInfo(IActiveJvm jvm, ObjectName objectName) {
   try {
     return jvm.getMBeanServer().getMBeanInfo(objectName);
   } catch (JvmCoreException e) {
     Activator.log(IStatus.ERROR, Messages.getMBeanInfoFailedMsg, e);
     return null;
   }
 }
 /**
  * Gets the object names.
  *
  * @param jvm The active JVM
  * @return The object names
  */
 private static Set<ObjectName> getObjectNames(IActiveJvm jvm) {
   try {
     return jvm.getMBeanServer().queryNames(null);
   } catch (JvmCoreException e) {
     Activator.log(IStatus.ERROR, Messages.getMBeanNamesFailedMsg, e);
   }
   return new HashSet<ObjectName>();
 }
 /**
  * Gets the contents.
  *
  * @param jvm The JVM
  * @param objectName The object name
  * @param attributeName The attribute name
  * @return The attribute contents
  */
 private static Object getContents(IActiveJvm jvm, ObjectName objectName, String attributeName) {
   try {
     return jvm.getMBeanServer().getAttribute(objectName, attributeName);
   } catch (JvmCoreException e) {
     // not supported
     if (Activator.getDefault().isDebugging()) {
       Activator.log(IStatus.ERROR, Messages.getMBeanAttributeFailedMsg, e);
     }
   } catch (RuntimeMBeanException e) {
     // not supported
   }
   return null;
 }