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. 16. The computer program product of claim 15 , wherein the computer usable program code further causes the data processing hardware system to perform: repeating, upon the parent context not caching all query results, the traversing for one or more next parent contexts of the subcontext until a root context is encountered; issuing, responsive to encountering the root context, the query to a database for the name and value pair; and caching a result of the query to the database in a new context.