code: private static ObjectName createObjectName(String type, String name, Hashtable<String, String> props) {
          props.put(KEY_TYPE, type);
          props.put(KEY_NAME, name);
  
          try {
              return new ObjectName(DOMAIN_NAME, props);
          } catch (MalformedObjectNameException e) {
              throw new IllegalArgumentException(e);
          }
      }
docs: Common object name factory method.
  
  The properties table must be an {@link Hashtable} because the object name
  constructor {@link Object#ObjectName String, Hashtable)} takes a parameter of
  this type.
  
  @param type The type of the object name. See {@link #KEY_TYPE}.
  @param name The name of the object name. See {@link #KEY_NAME}.
  @param props Properties expressing the attribute values of the object name.