public boolean write(Type type,Object value,NodeMap node,Map map){
  Class actual=value.getClass();
  Class expect=type.getType();
  Class real=actual;
  if (actual.isArray()) {
    real=writeArray(expect,value,node);
  }
  if (actual != expect) {
    node.put(label,real.getName());
  }
  return false;
}

public boolean write ( Type type , Object value , NodeMap node , Map map ) { Class actual = value . getClass ( ) ; Class expect = type . getType ( ) ; Class real = actual ; if ( actual . isArray ( ) ) { real = writeArray ( expect , value , node ) ; } if ( actual != expect ) { node . put ( label , real . getName ( ) ) ; } return false ; }
this is used to attach a attribute to the provided element that is used to identify the class . the attribute name is " class " and has the value of the fully qualified class name for the object provided . this will only be invoked if the object class is different from the field class .
