Hibernate + Spring + Environment Detection