code: public static ObjectName getSystemObjectName(final String domainName,
                                                 final String containerName,
                                                 final Class theClass) throws MalformedObjectNameException {
      String tmp = domainName + ":" +
                   "type=" + theClass.getName() +
                   ",name=" + getRelativeName(containerName, theClass);
      return new ObjectName(tmp);
    }
docs: Retrieve a System ObjectName
  
  @param domainName
  @param containerName
  @param theClass
  @return the ObjectName
  @throws MalformedObjectNameException