List<Name> namesList = businessEntity.getName();
List<Description> descriptionList = businessEntity.getDescription();
Organization org = new OrganizationImpl(lifeCycleManager);
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);
}
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(businessEntity.getBusinessKey()));