Changes to sessionfactoryutil