public static void tryUnregister(@Nonnull final ObjectName objectName) {
        try {
            Log.debug("Unregistering MBean from platform MBean server (if one was registered), using object name: {}", objectName);
            if (getInstance().getContainer().getMBeanServer().isRegistered(objectName)) {
                getInstance().getContainer().getMBeanServer().unregisterMBean(objectName);
                Log.debug("Successfully unregistered MBean from platform MBean server, using object name: {}", objectName.getCanonicalName());
            }
        } catch (Exception e) {
            Log.warn("Failed to unregister MBean with platform MBean server, using object name: {}", objectName, e);
        }
    }
Unregisters a MBean from the platform MBean server.

This method will log but otherwise ignore any exception that is thrown when unregistering the bean.

@param objectName The identifier that was used to register the bean under.
xmppserver/src/main/java/org/jivesoftware/openfire/JMXManager.java