Pre Open Session template method changed