code: public void serialize(Output output) throws IOException {
          log.debug("serialize - name: {}", name);
          Serializer.serialize(output, getName());
          Map<String, Object> map = getAttributes();
          if (log.isTraceEnabled()) {
              log.trace("Attributes: {}", map);
          }
          Serializer.serialize(output, map);
      }
docs: {@inheritDoc}