Change controller's first parameter to Class<?>