SessionFactory problem is fixed.