RestResource anno = findAnnotation(type, RestResource.class);
return anno == null || anno.exported();
}
public static boolean findExported(Method method) {
RestResource anno = findAnnotation(method, RestResource.class);
return anno == null || anno.exported();
}