ref #10067 adapt getAllPersistedClasses() to new hibernate metadata handling