public static org.uddi.api_v2.BusinessService MapService(org.uddi.api_v3.BusinessService be) { if (be == null) { return null; } BusinessService item = new org.uddi.api_v2.BusinessService(); item.setCategoryBag(MapCategoryBag(be.getCategoryBag())); item.getDescription().addAll(MapDescription(be.getDescription())); item.setBusinessKey(be.getBusinessKey()); item.setServiceKey(be.getServiceKey()); item.getName().addAll(MapName(be.getName())); if (be.getBindingTemplates() != null && !be.getBindingTemplates().getBindingTemplate().isEmpty()) { item.setBindingTemplates(new BindingTemplates()); item.getBindingTemplates().getBindingTemplate().addAll(MapBinding(be.getBindingTemplates().getBindingTemplate())); } return item; }