if (data.indexOf("]]") != -1) throw new IllegalArgumentException(data);
  public void writeCData(String data)    throws XMLStreamException  {    try      {        endStartElement();        if (data.indexOf("]]") != -1)          throw new IllegalArgumentException(data);        writer.write("<![CDATA[");        writer.write(data);        writer.write("]]>");      }    catch (IOException e)      {        XMLStreamException e2 = new XMLStreamException(e);        e2.initCause(e);        throw e2;      }  }