}
else {
if (log.isDebugEnabled()) {
log.debug("Sending message using sar_msg_ref_num, sar_segment_seqnum and sar_total_segments");
}
OptionalParameter sarMsgRefNum = OptionalParameters.newSarMsgRefNum(RandomUtils.nextInt(0x10000));
OptionalParameter sarTotalSegments = OptionalParameters.newSarTotalSegments(shortMessageParts.size());
String charsetName = DataCodingSpecification.getCharsetName(dataCoding.toByte());
for (int i = 0; i < shortMessageParts.size(); i++) {
byte[] shortMessagePart = shortMessageParts.get(i);
String msgId = this.smppSession.submitShortMessage(
this.serviceType,