if (addr == null || addr.length() == 0) {
throw new InvalidAddress();
}
if (sn == null || sn.length() == 0) {
throw new InvalidName();
}
// TODO: What validation, if any, needs to be done here?
return "corbaname:" + addr + "#" + encodeRFC2396Name(sn);
}