return od;
}
private static BindingTemplates getBindingTemplates(Collection serviceBindings)
throws JAXRException {
BindingTemplates bt = null;
if(serviceBindings != null && serviceBindings.size() > 0) {
bt = objectFactory.createBindingTemplates();
Iterator iter = serviceBindings.iterator();
int currLoc = 0;
BindingTemplate[] bindingTemplateArray = new BindingTemplate[serviceBindings.size()];
while(iter.hasNext()) {
ServiceBinding sb = (ServiceBinding)iter.next();
bindingTemplateArray[currLoc] = getBindingTemplateFromJAXRSB(sb);
currLoc++;
}
if (bindingTemplateArray != null) {
bt.getBindingTemplate().addAll(Arrays.asList(bindingTemplateArray));
}
}
return bt;
}