}
Address[] addresses = new Address[destAddresses.size()];
int addrNum = 0;
for (String destAddr : destAddresses) {
Address addr = new Address(destAddrTon, destAddrNpi, destAddr);
addresses[addrNum++] = addr;
}
submitMulti.setDestAddresses(addresses);
if (in.getHeaders().containsKey(SmppConstants.SOURCE_ADDR)) {