XMLAttributeList attributeList = new XMLAttributeList() .addAttribute("classname", getClassName()) .addAttribute("name", getMethodName()) .addAttribute("signature", getMethodSignature());  String role = getDescription(); if (!role.equals(DEFAULT_ROLE)) attributeList.addAttribute("role", role);  if (sourceLines == null) { xmlOutput.openCloseTag(ELEMENT_NAME, attributeList); } else { xmlOutput.openTag(ELEMENT_NAME, attributeList); sourceLines.writeXML(xmlOutput); xmlOutput.closeTag(ELEMENT_NAME); }
	public void writeXML(XMLOutput xmlOutput) throws IOException {		XMLAttributeList attributeList = new XMLAttributeList()			.addAttribute("classname", getClassName())			.addAttribute("name", getMethodName())			.addAttribute("signature", getMethodSignature());		String role = getDescription();		if (!role.equals(DEFAULT_ROLE))			attributeList.addAttribute("role", role);		if (sourceLines == null) {			xmlOutput.openCloseTag(ELEMENT_NAME, attributeList);		} else {			xmlOutput.openTag(ELEMENT_NAME, attributeList);			sourceLines.writeXML(xmlOutput);			xmlOutput.closeTag(ELEMENT_NAME);		}	}