moved some code into a Java class to work around a VerifyError after refactoring into the new core project
needed to push some code into the superclasses to avoid importing SessionFactoryImplementor which has a changed package in Hibernate4
Session.reconnect() is a no-op in Hibernate 3 and removed from Hibernate 4, so changed to just call getSession()
found a few more static method calls that are now instance methods
whitespace, cleanup