added session context and transactionfactory