* @return businessService object
*/
private BusinessService createBusinessService(String businessKey) {
BusinessService businessService = new BusinessService();
businessService.setBusinessKey(businessKey);
ServiceImpl service = businessServiceInfo.getService();
if (businessServiceInfo.getServiceDescription() != null) {
//set service description
Description serviceDesc = new Description();
serviceDesc.setLang(UDDIConstants.ENGLISH);
serviceDesc.setValue(businessServiceInfo.getServiceDescription());
businessService.getDescription().add(serviceDesc);
}
CategoryBag categoryBag = new CategoryBag();
addKeyedReferenceToCategoryBag(categoryBag, "uddi:uddi.org:wsdl:types", "WSDL type",
"service");
if (service != null) {
String serviceName = service.getQName().getLocalPart();
String serviceNamespace = service.getQName().getNamespaceURI();
Name name = new Name();
name.setValue(serviceName);
businessService.getName().add(name);
Map<String, PortImpl> ports = service.getPorts();
if (ports != null) {
BindingTemplates bindingTemplates = new BindingTemplates();
for (PortImpl port : ports.values()) {
BindingTemplate bindingTemplate = null;