code: @Override
      public InputStream Export(String format, String exportContext)
              throws ObjectIntegrityException, StreamIOException,
                     UnsupportedTranslationException, ServerException {
          // allocate the ByteArrayOutputStream with a 4k initial capacity to constrain copying up
          ReadableByteArrayOutputStream bytes = new ReadableByteArrayOutputStream(4096);
          try {
              Stream(format, exportContext).write(bytes);
          } catch (Exception e) {
              throw new StreamIOException(e.getMessage(),e);
          }
          return bytes.toInputStream();
      }
docs: {@inheritDoc}