code: public void serialize(DigitalObject obj,
                            OutputStream out,
                            String encoding,
                            int transContext) throws ObjectIntegrityException,
              StreamIOException, UnsupportedEncodingException {
          if (encoding == null || encoding == "")encoding = "UTF-8";
          Feed feed = abdera.newFeed();
          ZipOutputStream zout = null;
          if (m_format.equals(ATOM_ZIP1_1)) {
              zout = new ZipOutputStream(out);
          }
  
          addObjectProperties(obj, feed);
          feed.setIcon("http://www.fedora-commons.org/images/logo_vertical_transparent_200_251.png");
          addDatastreams(feed, obj, zout, encoding, transContext);
  
          if (m_format.equals(ATOM_ZIP1_1)) {
              try {
                  zout.putNextEntry(new ZipEntry("atommanifest.xml"));
                  feed.writeTo("prettyxml", zout);
                  zout.closeEntry();
                  zout.close();
              } catch (IOException e) {
                  throw new StreamIOException(e.getMessage(), e);
              }
          } else {
              try {
                  feed.writeTo("prettyxml", out);
              } catch (IOException e) {
                  throw new StreamIOException(e.getMessage(), e);
              }
          }
      }
docs: {@inheritDoc}