code: public Set<String> getMBeanNames() {
          Set<String> nameSet = new TreeSet<String>();
          for (ObjectInstance instance : mBeanServer.queryMBeans(null, null)) {
              nameSet.add(sanitizer.escapeValue(instance.getObjectName().getCanonicalName()));
          }
          return nameSet;
      }
docs: Get the {@link Set} of MBean names from the {@link MBeanServer}.  The names are HTML sanitized.
  @return the {@link Set} of HTML sanitized MBean names.