15. A computer program product comprising a computer usable storage medium having stored therein computer usable program code, the computer usable program code, which when executed on a data processing hardware system, causes the data processing hardware system to perform: receiving, from a user, a query to a root context of a context tree, the query including a name and value pair; traversing, upon detecting the query to the root context of the context tree, the context tree for a parent context of a subcontext corresponding to the name and value pair; and determining whether the parent context caches all query results.
15. A computer program product comprising a computer usable storage medium having stored therein computer usable program code, the computer usable program code, which when executed on a data processing hardware system, causes the data processing hardware system to perform: receiving, from a user, a query to a root context of a context tree, the query including a name and value pair; traversing, upon detecting the query to the root context of the context tree, the context tree for a parent context of a subcontext corresponding to the name and value pair; and determining whether the parent context caches all query results. 20. The computer program product of claim 15 , wherein the context tree includes a root context and a set of subcontexts, and each of the set of subcontext includes one or more subcontexts.