docs: public static boolean isMbeanExist(String objName, String callingClass, String callingMethod) {
          final String methodName = "isMbeanExist()";
          final boolean trace = TraceComponent.isAnyTracingEnabled();
          final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
          final String cClass = (callingClass != null && !callingClass.isEmpty()) ? callingClass : "callingClass";
          final String cMethod = (callingMethod != null && !callingMethod.isEmpty()) ? callingMethod : "callingMethod";
  
          ObjectName obnToCompare = null;
          try {
              obnToCompare = new ObjectName(objName);
          } catch (Exception e) {
              // This path should not happen because the calling class is building the ObjectName and know it's valid.
              if (trace && tc.isDebugEnabled())
                  Tr.debug(tc, cClass + ": " + cMethod + " is using " + className + ": " + methodName
                               + ": Creating ObjectName failed."
                               + "\n " + e.toString());
              return false;
          }
          Set<ObjectInstance> s = mbs.queryMBeans(obnToCompare, null);
          if (s.size() == 0) { // This is the right path that should happen.
              if (trace && tc.isDebugEnabled())
                  Tr.debug(tc, cClass + ": " + cMethod + " is using " + className + ": " + methodName
                               + ": s.size(): " + s.size() + ", No duplicate MBean Found");
              return false;
          }
          if (trace && tc.isDebugEnabled())
              Tr.debug(tc, cClass + ": " + cMethod + " is using " + className + ": " + methodName
                           + ": searching for: " + objName);
          for (ObjectInstance bean : s)
              if (trace && tc.isDebugEnabled())
                  Tr.debug(tc, "**  Found a duplicate MBean: " + bean.getObjectName().toString());
          if (trace && tc.isDebugEnabled())
              Tr.debug(tc, cClass + ": " + cMethod + " is using " + className + ": " + methodName
                           + ": The Mbean already exist in the MBean server.");
          return true;
      }