code: @Override
      protected void emitStartDocument() {
          try {
              if (mSerializeXMLDeclaration) {
                  write("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");
              }
              if (mSerializeRest) {
                  write("<rest:sequence xmlns:rest=\"REST\"><rest:item>");
              }
          } catch (final IOException exc) {
              exc.printStackTrace();
          }
      }
docs: {@inheritDoc}