code: public void setAttribute(String name, Object value) {
          synchronized (attribute) {
              attribute.put(name, value);
          }
      }
docs: Sets the named attribute to the specified value.
  
  @param name Name of the attribute.
  @param value Value to associate with the attribute.