code: public void setAttribute(String key, String value) {
  /*		if (!attributes.containsKey(key))
  		{
  			sortedAttributes.add(key);
  		}*/
  		if (nodeAttributes == null) {
  			nodeAttributes = new Properties();
  		}
  		nodeAttributes.setProperty(key, value);
  	}
docs: Sets a name-value pair that appears as attribute in the opening tag
  
  @param key
  @param value