AdvancedBeanInitializer.bulkLoadLazyBeans causes autoFlush being triggered
initializing a Team through the AdvancedBeanInitializer causes an autoflush:
In AdvancedBeanInitializer.bulkLoadLazyBeans(BeanInitNode node) the query.list()
with "QueryImpl( SELECT c FROM TeamOrPersonBase as c WHERE c.id IN (:idSet) )" triggers an autoFlush of the team entity.
In turn of the autoflush the team.titleCache is generated which causes the teamMembers to be initialized, which in principle makes
TeamAutoInitializer obsolte but only if the flush mode is on
The autoFlush of the session is unexpected and may cause unwanted side effects, therefore it should be avoided.