Hi Shashank,
Altjhough there _are_ API calls for setting individual elements of the context I dont recommend most people use them.
Instead configure the context manually in the desktop where you can test it and more easily see whats going on.
Then export the context file and import that via the API when you need it.
Thats a much easier approach.
Cheers,
Simon