@Override
public void writeAttribute(String prefix, String namespaceURI, String localName, String value)
throws XMLStreamException {
if (openStartElement == null) {
throw new XMLStreamException("No open start element.");
}
openStartElement.addAttribute(
XMLSecEventFactory.createXMLSecAttribute(
new QName(namespaceURI, localName, prefix), value));
}