class InstanceSelector {

    void close( Consumer<T> consumer )
    {
        if ( !closed )
        {
            try
            {
                forInstantiated( consumer );
            }
            finally
            {
                closed = true;
            }
        }
    }

      InstanceSelector();
      InstanceSelector( EnumMap<IndexSlot,T> map );

}