@Override
  public void updateDocument(
      @NotNull DBRProgressMonitor monitor, @NotNull InputStream stream, String encoding)
      throws DBException {
    try {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      ContentUtils.copyStreams(stream, -1, baos, monitor);
      content.updateContents(monitor, new BytesContentStorage(baos.toByteArray(), encoding));

      document.updateDocument(monitor, new ByteArrayInputStream(baos.toByteArray()), encoding);
    } catch (IOException e) {
      throw new DBException("Error transforming XML document", e);
    }
  }
 @Override
 public Object getRawValue() {
   return document.getRawValue();
 }
 @NotNull
 @Override
 public Object getRootNode() {
   return document.getRootNode();
 }
 @NotNull
 @Override
 public String getDocumentContentType() {
   return document.getDocumentContentType();
 }
 @Nullable
 @Override
 public Object getDocumentProperty(String name) {
   return document.getDocumentProperty(name);
 }
 @Override
 public void release() {
   document.release();
 }
 @Override
 public boolean isNull() {
   return document.isNull();
 }