protected int storeReference(Object obj){
  int newRefId=refId++;
  refMap.put(Integer.valueOf(newRefId),obj);
  return newRefId;
}

protected int storeReference ( Object obj ) { int newRefId = refId ++ ; refMap . put ( Integer . valueOf ( newRefId ) , obj ) ; return newRefId ; }
store an object into a map
