SLICE-11 Allow ModelProvider to accept Key<T> or annotation

SLICE-11 Allow ModelProvider to accept Key<T> or annotation