docs: @Override
      public void write( final Object obj, final OutputElement xml ) throws XMLStreamException {
          
          final Class<?> superclass = obj.getClass().getSuperclass();
          xml.setAttribute( SUPERCLASS, superclass.getName() );
          
          final String[] interfaceNames = getInterfaceNames( obj );
          xml.add( interfaceNames, INTERFACES );
          
          final Callback[] callbacks = ((Factory)obj).getCallbacks();
          xml.add( callbacks, CALLBACKS );
      }