anges to expose the getSessionFactory method