code: public static ObjectName getObjectName(Class interfaceClass, String key, String value) {
  
          // Set the table.
          Hashtable<String,String> table = new Hashtable<String,String>();
          table.put(key, value);
  
          return getObjectName(interfaceClass, table);
      }
docs: Get the MBean object name.
  
  @param  interfaceClass  the MBean interface class.
  @param  key             the property key.
  @param  value           the property value.
  
  @return  the MBean object name.
  
  @throws  IllegalArgumentException  if the interface class is invalid or
  unable to get the MBean object name.