A registry pattern is a global association from keys to objects that allows the objects to be accessed from anywhere. It includes two methods:
void set(K key, V value) - add objects to the registry
V get(K key) - returns the object for the key.