code: public static ObjectName makeObjectName(String objectNameString) {
  		try {
  			return new ObjectName(objectNameString);
  		} catch (Exception e) {
  			throw new IllegalArgumentException("Invalid ObjectName generated: " + objectNameString, e);
  		}
  	}
docs: Constructs an object-name from a string suitable to be passed to the {@link ObjectName} constructor.
  
  @param objectNameString
  The entire object-name string in the form of something like
  <tt>your.domain:folder=1,name=beanBean</tt>
  @throws IllegalArgumentException
  If we had problems building the name