public ObjectNameBuilder withDomainAndType(Class<?> mBeanClass) throws MalformedObjectNameException {
        return withDomain(mBeanClass.getPackage().getName()).withType(mBeanClass.getName());
    }
public ObjectNameBuilder withDomainAndType ( Class < ? > mBeanClass ) throws MalformedObjectNameException { return withDomain ( mBeanClass . getPackage ( ) . getName ( ) ) . withType ( mBeanClass . getName ( ) ) ; }
@param mBeanClass the class that will contribute its attributes
@return an ObjectNameBuilder with a domain matching {@code mBeanClass}' package,
and type attribute matching {@code mBeanClass}' fully qualified name.
@throws MalformedObjectNameException