code: protected void storeReference(int refId, Object newRef) {
          refMap.put(Integer.valueOf(refId), newRef);
      }
docs: Replace a referenced object with another one. This is used by the AMF3 deserializer to handle circular references.
  
  @param refId
  reference id
  @param newRef
  replacement object