public void register ( T instance ) { if ( ! isContained ( instance ) ) { registry . add ( instance ) ; if ( current == null ) { current = instance ; } } }
Registers a new instance with this registry .