code: private <O> void setValue(Map<String, O> nameValueMap, String name, O value) {
          checkForNull(name, value);
          nameValueMap.put(name, value);
      }
docs: Sets the value of an attribute.
  @param nameValueMap A map which maps attribute names to attribute values.
  @param name The name of the attribute.  Not null.
  @param value The value of the attribute.  Not null.
  @throws NullPointerException if name is null, or value is null.