public static RelatedBusinessesList MapRelatedBusinessList(org.uddi.api_v3.RelatedBusinessesList findRelatedBusinesses, String operator) {
if (findRelatedBusinesses == null) {
return null;
}
RelatedBusinessesList r = new RelatedBusinessesList();
r.setGeneric(VERSION);
r.setOperator(operator);
r.setBusinessKey(findRelatedBusinesses.getBusinessKey());
if (findRelatedBusinesses.isTruncated() != null && findRelatedBusinesses.isTruncated()) {
r.setTruncated(Truncated.TRUE);
} else {
r.setTruncated(Truncated.FALSE);
}
r.setRelatedBusinessInfos(new RelatedBusinessInfos());
if (findRelatedBusinesses.getRelatedBusinessInfos() != null) {
for (int i = 0; i < findRelatedBusinesses.getRelatedBusinessInfos().getRelatedBusinessInfo().size(); i++) {
RelatedBusinessInfo x = new RelatedBusinessInfo();
x.setBusinessKey(findRelatedBusinesses.getRelatedBusinessInfos().getRelatedBusinessInfo().get(i).getBusinessKey());
x.getDescription().addAll(MapDescription(findRelatedBusinesses.getRelatedBusinessInfos().getRelatedBusinessInfo().get(i).getDescription()));
x.getName().addAll(MapName(findRelatedBusinesses.getRelatedBusinessInfos().getRelatedBusinessInfo().get(i).getName()));
r.getRelatedBusinessInfos().getRelatedBusinessInfo().add(x);
}
}
return r;
}