code: public void serialize(DigitalObject obj,
                            OutputStream out,
                            String format,
                            String encoding,
                            int transContext) throws ObjectIntegrityException,
              StreamIOException, UnsupportedTranslationException, ServerException {
          try {
              logger.debug("Grabbing serializer for: {}", format);
              DOSerializer ser = m_serializers.get(format);
              if (ser == null) {
                  throw new UnsupportedTranslationException("No serializer exists for format: "
                          + format);
              }
              DOSerializer newSer = ser.getInstance();
              newSer.serialize(obj, out, encoding, transContext);
          } catch (UnsupportedEncodingException uee) {
              throw new UnsupportedTranslationException("Serializer for format: "
                      + format + " does not support encoding: " + encoding);
          }
      }
docs: {@inheritDoc}