}
private void registerControllerClass(Class<?> controllerType) {
Assert.notNull(controllerType, "Controller type must nor be null!");
ExposesResourceFor annotation = AnnotationUtils.findAnnotation(controllerType, ExposesResourceFor.class);
if (annotation != null) {
entityToController.put(annotation.value(), controllerType);
} else {
throw new IllegalArgumentException(String.format("Controller %s must be annotated with @ExposesResourceFor!",
controllerType.getName()));
}
}