Fix StackOverflowException in JUnitTests

java.lang.StackOverflowError
	at HibernatePersistenceUnit.getAllJavaGenerators(HibernatePersistenceUnit.java:274)