code: public static ObjectName makeObjectName(JmxResource jmxResource, Object obj) {
  		String domainName = jmxResource.domainName();
  		if (isEmpty(domainName)) {
  			throw new IllegalArgumentException(
  					"Could not create ObjectName because domain name not specified in @JmxResource");
  		}
  		String beanName = getBeanName(jmxResource);
  		if (beanName == null) {
  			beanName = obj.getClass().getSimpleName();
  		}
  		return makeObjectName(domainName, beanName, null, jmxResource.folderNames());
  	}
docs: Constructs an object-name from a jmx-resource and a object which is not self-naming.
  
  @param jmxResource
  Annotation from the class for which we are creating our ObjectName.
  @param obj
  Object for which we are creating our ObjectName
  @throws IllegalArgumentException
  If we had problems building the name