src/main/java/org/lazydog/mbean/utility/MBeanUtility.java
public static <T> ObjectName register(Class<T> interfaceClass, String key, String value) throws MBeanException {
        return register(interfaceClass, getObjectName(interfaceClass, key, value));
    }
public static <T> ObjectName register(Class<T> interfaceClass, String key, String value) throws MBeanException {
        return register(interfaceClass, getObjectName(interfaceClass, key, value));
    }
Register the MBean represented by the interface class.  The MBean object
name is set to the object name returned by the
getObjectName(Class interfaceClass, String key, String value) method.

@param  interfaceClass  the MBean interface class.
@param  key             the property key.
@param  value           the property value.

@return  the MBean object name.

@throws  IllegalArgumentException  if the interface class is invalid or
unable to get the MBean object name.
@throws  MBeanException            if unable to register the MBean.