if (collection==CollectionType.UNFETCHED_COLLECTION) {
return null;
}
if (collection!=null) {
final PersistentCollection coll;
if ( type.hasHolder( getSession().getEntityMode() ) ) {
coll = getSession().getPersistenceContext().getCollectionHolder(collection);
}
else {
coll = (PersistentCollection) collection;
}
Collections.processReachableCollection( coll, type, owner, getSession() );
}
return null;