code: private void endCollectionLoad(
  			final ResultSet resultSetId,
  			final SharedSessionContractImplementor session,
  			final CollectionPersister collectionPersister) {
  		//this is a query and we are loading multiple instances of the same collection role
  		session.getPersistenceContext()
  				.getLoadContexts()
  				.getCollectionLoadContext( resultSetId )
  				//.getCollectionLoadContext( ( ResultSet ) resultSetId )
  				.endLoadingCollections( collectionPersister );
  	}
docs: Copied from {@link org.hibernate.loader.Loader#endCollectionLoad}
  
  @param resultSetId the collection result set
  @param session the session
  @param collectionPersister the collection persister