Hibernate + Jaas second ed
refactoring