Code example for SessionFactory

Methods: getCurrentSession