Added create session factory and open session features.