} else {
/*
* gmj - I *think* this is the right thing to do
*/
throw new JAXRException(
"Service has no associated organization");
}
if (service.getKey() != null && service.getKey().getId() != null) {
bs.setServiceKey(service.getKey().getId());
} else {
bs.setServiceKey("");
}
CategoryBag catBag = getCategoryBagFromClassifications(service.getClassifications());
if (catBag!=null) {
bs.setCategoryBag(catBag);
}
//Add the ServiceBinding information
BindingTemplates bt = getBindingTemplates(service.getServiceBindings());
if (bt != null) {
bs.setBindingTemplates(bt);
}
log.debug("BusinessService=" + bs.toString());
} catch (Exception ud) {
throw new JAXRException("Apache JAXR Impl:", ud);
}
return bs;
}