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 a parent domain of the domain; an identifier of a configuration builder corresponding to the domain used to build the domain; and an identifier of one or more local decisions made by the corresponding configuration builder when creating the domain; correlating a unique identifier key to the path name in the index, wherein the unique identifier key is correlated to the path name in a first table of the index and the unique identifier key is used as a foreign key into a second table of the index; and correlating view state information for the domain to the unique identifier key in the second table in the index, wherein the view state information comprises an enumeration of changes to underlying source code for the corresponding configuration builder to build the domain from a base version of the underlying source code, while preserving the underlying source code for building the domain.