nl: the inverse of #registerloadingcollectionxref . here , we are done processing the said collection entry , so we remove it from the load context . the idea here is that other loading collections can now reference said collection directly from the persistencecontext because ithas completed its load cycle . implementation note : package protected , as this is meant solely for use by collectionloadcontext to be able to locate collectionsbeing loaded by other collectionloadcontext s / resultset s. concode_field_sep Map<CollectionKey,LoadingCollectionEntry> xrefLoadingCollectionEntries concode_elem_sep CoreMessageLogger LOG concode_elem_sep Map<ResultSet,EntityLoadContext> entityLoadContexts concode_elem_sep PersistenceContext persistenceContext concode_elem_sep Map<ResultSet,CollectionLoadContext> collectionLoadContexts concode_field_sep EntityLoadContext getEntityLoadContext concode_elem_sep Map getLoadingCollectionXRefs concode_elem_sep boolean hasRegisteredLoadingCollectionEntries concode_elem_sep CollectionLoadContext getCollectionLoadContext concode_elem_sep PersistenceContext getPersistenceContext concode_elem_sep void cleanup concode_elem_sep void cleanup concode_elem_sep void registerLoadingCollectionXRef concode_elem_sep void cleanupCollectionXRefs concode_elem_sep boolean hasLoadingCollectionEntries concode_elem_sep SessionImplementor getSession concode_elem_sep PersistentCollection locateLoadingCollection concode_elem_sep LoadingCollectionEntry locateLoadingCollectionEntry
code: void function ( CollectionKey arg0 ) { if ( ! hasRegisteredLoadingCollectionEntries ( ) ) { return ; } xrefLoadingCollectionEntries . remove ( arg0 ) ; }