Patent ID: 8874752

Claim:
An apparatus comprising processing circuitry, the processing circuitry being configured to: receive an indication of a selected resource reference element associated with a database; receive an indication of at least one resource to be associated with the selected resource reference element specified by the indication of the selected resource reference element; generate a registry including a declarative policy defining an association of the selected resource reference element and the at least one resource specified by the indication of the at least one resource, the registry defining an other than one-to-one (1:1) mapping between resource reference elements and resources, and the declarative policy including rules for determining which one of the resources mapped to a given one of the resource reference elements in the other than 1:1 mapping to map to the given one of the resource reference elements, based on contextual information associated with the given one of the resource reference element; associate context criteria with at least a portion of the other than 1:1 mapping, the context criteria enabling selection of a 1:1 mapping from the other than 1:1 mapping based on context information associated with a request that has been received; determine a policy to apply to the request based on the context information associated with the request based at least in part on the rules defined in the declarative policy; and resolve a 1:1 mapping for a thread associated with the request.