Added state into the local context

It will be used within the rc files.

Change-Id: Ic3b504357ce012da0a9946cb7ec2345ec240e7b7