}
private void deliver(DeliveryInfoEntry entry) {
debug.enter(this, "deliver");
SubmitSM submit = entry.submit;
DeliverSM deliver = new DeliverSM();
deliver.setSourceAddr(submit.getDestAddr());
deliver.setDestAddr(submit.getDestAddr());
String msg = "";
msg += "id:" + entry.messageId + " ";
msg += "sub:" + entry.sub + " ";
msg += "dlvrd:" + entry.dlvrd + " ";
msg += "submit date:" + formatDate(entry.submitted) + " ";
msg += "done date:" + formatDate(System.currentTimeMillis()) + " ";
msg += "stat:" + entry.stat + " ";
msg += "err:" + entry.err + " ";
String shortMessage = submit.getShortMessage();
int msgLen = shortMessage.length();
msg += "text:" + shortMessage.substring(0, (msgLen > 20 ? 20 : msgLen));
try {
deliver.setShortMessage(msg);
deliver.setServiceType(submit.getServiceType());
} catch (WrongLengthOfStringException e) {
}
try {
entry.processor.serverRequest(deliver);
} catch (Exception e) {