code: public ObjectName createCustomComponentMBeanName(final String type, final String name) {
      ObjectName result = null;
      String tmp = jmxDomainName + ":" +
                   "type=" + sanitizeString(type) +
                   ",name=" + sanitizeString(name);
      try {
        result = new ObjectName(tmp);
      } catch (MalformedObjectNameException e) {
        error("Couldn't create ObjectName from: " + type + " , " + name);
      }
      return result;
    }
docs: Formulate and return the MBean ObjectName of a custom control MBean
  
  @param type
  @param name
  @return the JMX ObjectName of the MBean, or <code>null</code> if
  <code>customName</code> is invalid.