1. In a computing environment, a method of indexing domains of a declarative application with view state information for the domain to enable persisting the view state of the declarative application, wherein the domains are organized in a tree, each domain being built by a configuration builder, the method comprising: indexing a domain of a declarative application by indexing a path name in an index, wherein the path name comprises: a path name of the parent domain of the domain; an identifier of the configuration builder used to build the domain; and an identifier of one or more local decisions made by the configuration builder when creating the domain; correlating a unique identifier key to the path name in the index; and correlating view state information for the domain to the unique key identifier.