}
public Udp toUdp(SbiUdp sbiUdp){
logger.debug("IN");
Udp toReturn=new Udp();
toReturn.setUdpId(sbiUdp.getUdpId());
toReturn.setLabel(sbiUdp.getLabel());
toReturn.setName(sbiUdp.getName());
toReturn.setDescription(sbiUdp.getDescription());
toReturn.setDataTypeId(sbiUdp.getTypeId());
toReturn.setFamilyId(sbiUdp.getFamilyId());
toReturn.setMultivalue(sbiUdp.isIsMultivalue());
// get the type ValueCd
if (sbiUdp.getTypeId() != null){
Domain domain;
try {
domain = DAOFactory.getDomainDAO().loadDomainById(sbiUdp.getTypeId());
toReturn.setDataTypeValeCd(domain.getValueCd());
} catch (EMFUserError e) {
logger.error("error in loading domain with Id "+sbiUdp.getTypeId(), e);
}
}
logger.debug("OUT");