public static org.uddi.api_v2.BusinessEntity MapBusiness(org.uddi.api_v3.BusinessEntity be, String operator) {
if (be == null) {
return null;
}
BusinessEntity item = new org.uddi.api_v2.BusinessEntity();
item.setBusinessKey(be.getBusinessKey());
item.setCategoryBag(MapCategoryBag(be.getCategoryBag()));
item.setContacts(MapContacts(be.getContacts()));
item.setDiscoveryURLs(MapDiscoveryURLs(be.getDiscoveryURLs()));
item.setIdentifierBag(MapIdentBag(be.getIdentifierBag()));
item.setOperator(operator);
item.getDescription().addAll(MapDescription(be.getDescription()));
item.getName().addAll(MapName(be.getName()));
if (be.getBusinessServices() != null && !be.getBusinessServices().getBusinessService().isEmpty()) {
item.setBusinessServices(new BusinessServices());
item.getBusinessServices().getBusinessService().addAll(MapService(be.getBusinessServices().getBusinessService()));
}
return item;
}