private boolean writeReference(Object value,NodeMap node){
  String name=get(value);
  int size=size();
  if (name != null) {
    node.put(refer,name);
    return true;
  }
  String unique=String.valueOf(size);
  node.put(mark,unique);
  put(value,unique);
  return false;
}

private boolean writeReference ( Object value , NodeMap node ) { String name = get ( value ) ; int size = size ( ) ; if ( name != null ) { node . put ( refer , name ) ; return true ; } String unique = String . valueOf ( size ) ; node . put ( mark , unique ) ; put ( value , unique ) ; return false ; }
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 .
