docs: @Override
      public void endDocument() throws IOException
      {
          if (hasChanges)
          {
              // Close the <insert> element, if any.
              //error close the last op if any
              endInsert();
              
              _wrapped.endElement ("changes");
              
              hasChanges = false;
          }
          
          _wrapped.endElement ("partial-response");
      }