code: public String setAttribute(final String name, final String value) {
          if(null!=value){
              return getAttributes().put(name, value);
          }else{
              getAttributes().remove(name);
              return value;
          }
      }
docs: Set the value for a specific attribute
  
  @param name  attribute name
  @param value attribute value
  @return value