Some examples of API overrides as well as general DI using 'T instantiate(Class<T> clazz)'