There is some questionable use of intern() in org.hibernate.loader.DefaultEntityAliases. We should review why this was introduced and what impact this has on memory.