code: @Override
      public void writeCData(char[] cbuf, int start, int len)
          throws XMLStreamException
      {
          /* 02-Dec-2004, TSa: Maybe the writer is to "re-direct" these
           *   writes as normal text? (sometimes useful to deal with broken
           *   XML parsers, for example)
           */
          if (mCfgCDataAsText) {
              writeCharacters(cbuf, start, len);
              return;
          }
  
          mAnyOutput = true;
          // Need to finish an open start element?
          if (mStartElementOpen) {
              closeStartElement(mEmptyElement);
          }
          verifyWriteCData();
          if (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT
              && mValidator != null) {
              /* Last arg is false, since we do not know if more text
               * may be added with additional calls
               */
              mValidator.validateText(cbuf, start, start + len, false);
          }
          int ix;
          try {
              ix = mWriter.writeCData(cbuf, start, len);
          } catch (IOException ioe) {
              throw new WstxIOException(ioe);
          }
          if (ix >= 0) { // problems that could not to be fixed?
              throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));
          }
      }
docs: /*
  /////////////////////////////////////////////////////////
  StAX2, output methods
  /////////////////////////////////////////////////////////