throw new JAXRException("Unexpected count of organizations in BusinessDetail: " + bizEntityList.size());
}
BusinessEntity entity = bizEntityList.get(0);
List<Name> namesList = entity.getName();
if ((namesList != null) && (namesList.size() > 0)) {
InternationalString is = null;
for (Name n : namesList) {
if (is == null) {
is = getIString(n.getLang(), n.getValue(), lifeCycleManager);
} else {
is.setValue(getLocale(n.getLang()), n.getValue());
}
}
org.setName(is);
}
List<Description> descriptionList = entity.getDescription();
if ((descriptionList != null) && (descriptionList.size() > 0)) {
InternationalString is = null;
for (Description desc : descriptionList) {
if (is == null) {
is = getIString(desc.getLang(), desc.getValue(), lifeCycleManager);
} else {
is.setValue(getLocale(desc.getLang()), desc.getValue());
}
}
org.setDescription(is);
}
org.setKey(lifeCycleManager.createKey(entity.getBusinessKey()));