private void processSources(org.fabric3.api.annotation.Consumer annotation, Consumer consumer, AccessibleObject member, Class<?> clazz, IntrospectionContext context) { try { if (annotation.sources().length > 0) { for (String target : annotation.sources()) { consumer.addSource(new URI(target)); } } else if (annotation.source().length() > 0) { consumer.addSource(new URI(annotation.source())); } } catch (URISyntaxException e) { InvalidAnnotation error = new InvalidAnnotation("Invalid consumer source on : " + clazz.getName(), member, annotation, clazz, e); context.addError(error); } }