question: public boolean write ( Type type , Object value , NodeMap node ) { Class actual = value . getClass ( ) ; Class expect = type . getType ( ) ; Class real = actual ; if ( actual . isArray ( ) ) { real = writeArray ( actual , value , node ) ; } if ( actual != expect ) { node . put ( label , real . getName ( ) ) ; } return writeReference ( value , node ) ; }
target:  This is used to write the XML element attributes representing the serialized object instance. If the object has already been serialized to the XML document then a reference attribute is inserted and this returns true, if not, then this will write a unique identity marker attribute and return false.