return getCrudController(keyClass, modelClass, crudControllers);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
private <C extends CRUD> Map<Class<?>, ControllerProxy<?, ?>> scanRest(GlobalSettings global, Class<C> superType, ClassLoader... cls) {
final Reflections reflections = new Reflections(new ConfigurationBuilder().setUrls(
ClasspathHelper.forPackage("", cls)).setScanners(new SubTypesScanner(),
new TypeAnnotationsScanner()).addClassLoaders(cls));
Map<Class<?>, ControllerProxy<?, ?>> map = Maps.newHashMap();
Set<Class<? extends C>> controllerClasses = reflections.getSubTypesOf(superType);