I actually had to add this because an existing test failed, which made sense because as you look at super classes recursively you finally get to one that implements an interface a like DelegatingResourceHandler<T>  with a type argument that is not a valid Class so i was getting a ClassCastException