public static String findRel(Class<?> type) {
RestResource anno = findAnnotation(type, RestResource.class);
if (anno != null) {
if (hasText(anno.rel())) {
return anno.rel();
}
}
return uncapitalize(type.getSimpleName().replaceAll("Repository", ""));
}