saving context in BasicDAO object