WebServiceRefs wsRefsAnnotation = (WebServiceRefs) ainfo.getAnnotation();
WebServiceRef[] wsRefAnnotations = wsRefsAnnotation.value();
List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>();
for(WebServiceRef wsRef : wsRefAnnotations) {
results.add(processAWsRef(ainfo, wsRef));
}
HandlerProcessingResult finalResult = null;
for (HandlerProcessingResult result : results) {
if (finalResult == null ||
(result.getOverallResult().compareTo(
finalResult.getOverallResult()) > 0)) {
finalResult = result;
}
}
return finalResult;