Store the context in the local.store.

fixes bug 1147173

Change-Id: Ida78074a8003cf2411122352387f4e593cbf84c5
Merge "Store the context in the local.store."