Added type to Class clazz in BaseController