Every thing in the environment needs a unique identity. Given the unique identity, the type of the identity can be established. This could be done with a map or by having a type field in the identifier itself.