if (controller != null) {
Class modelClass = controller.getModelClass();
log.info("Found controller:" + controllerClass + " (" + modelClass + ")");
ModelMetadata model = models.getModel(modelClass);
if (model != null) {
map.put(modelClass, new ControllerProxyREST(controller, model));
}
}
} catch (Exception e) {
e.printStackTrace();
}