1. A computer-readable storage medium having computer-executable instructions for performing steps comprising: assigning a local name to each entity that is registered to one of a plurality of compartments; assigning a global name to each global entity that is registered to one of the plurality of compartments, each global entity being an entity that is referenced by another entity that is registered to a different compartment than the global entity; activating local names corresponding to entities that are registered to a first compartment of the plurality of compartments by retrieving the local names from a secondary storage device to an active memory, wherein the local names are not unique across the plurality of compartments; assigning identical local names to two entities that are registered to different ones of the plurality of compartments; performing operations on the entities registered to the first compartment; and deactivating the local names corresponding to the entities that are registered to the first compartment after the operations are performed by returning the local names from the active memory to the secondary storage device.
2. The computer-readable storage medium of claim 1 having further computer-executable instructions for repeating the activating, performing, and deactivating steps for each compartment in the plurality of compartments.