if (text != null)
if (hasXML11RestrictedChars) writeEncodedWithRestrictedChars(text, false); else
  public void writeCharacters(String text)    throws XMLStreamException  {    try      {        endStartElement();        if (text != null)          writeEncoded(text, false);      }    catch (IOException e)      {        XMLStreamException e2 = new XMLStreamException(e);        e2.initCause(e);        throw e2;      }  }