Class is a raw type. References to generic type Class<T> should be parameterized