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

@param  interfaceClass  the MBean interface class.

@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.