if (clazz.isAnnotationPresent(Resource.class)) {
final Resource resourceAnn = clazz.getAnnotation(Resource.class);
final URL resource = getResource(clazz, resourceAnn.source());
if (resource != null) {
resources.put(resourceAnn.destination().replaceFirst("WEB-INF/classes/", ""), resource);
}
}
if (clazz.isAnnotationPresent(Resources.class)) {
final Resources resourcesAnn = clazz.getAnnotation(Resources.class);