code: @Override
      protected void emitEndDocument() {
          try {
              if (mSerializeRest) {
                  write("</rest:item></rest:sequence>");
              }
              mOut.flush();
          } catch (final IOException exc) {
              exc.printStackTrace();
          }
  
      }
docs: {@inheritDoc}