code: public void register(T instance) {
  		if(!isContained(instance)) {
  			registry.add(instance);
  			if(current == null) {
  				current = instance;
  			}
  		}
  	}
docs: Registers a new instance with this registry.
  
  @param instance Instance to be registered.