List<Class> classeswithWebServiceRefs = classFinder.findAnnotatedClasses(WebServiceRefs.class);
// Class-level annotation(s)
List<WebServiceRef> webServiceRefList = new ArrayList<WebServiceRef>();
for (Class cls : classeswithWebServiceRefs) {
WebServiceRefs webServiceRefs = (WebServiceRefs) cls.getAnnotation(WebServiceRefs.class);
if (webServiceRefs != null) {
webServiceRefList.addAll(Arrays.asList(webServiceRefs.value()));
}
for (WebServiceRef webServiceRef : webServiceRefList) {
addWebServiceRef(annotatedApp, webServiceRef, cls, null, null);
}
webServiceRefList.clear();