code: public void setAttribute(String name, String value)
    {
      Params.notNullOrEmpty(name, "Attribute name");
      Params.notEmpty(value, "Attribute value");
      if(value != null) {
        attributes.put(name, value);
      }
      else {
        attributes.remove(name);
      }
    }
docs: Set configuration object attribute. If attribute already exists overwrite old value. Empty value is not accepted
  but null is considered indication to remove attribute. So that, an existing attribute cannot be either null or
  empty.
  
  @param name attribute name,
  @param value attribute value, null ignored.
  @throws IllegalArgumentException if <code>name</code> argument is null or empty.
  @throws IllegalArgumentException if <code>value</code> argument is empty.