code: def addReference(self, reference):
          
          id_ = reference.getId()
          self._referenceIdMap[id_] = reference
          self._referenceNameMap[reference.getLocalId()] = reference
          self._referenceIds.append(id_)
docs: Adds the specified reference to this ReferenceSet.