}
@Override
protected Object createBody() {
if (command instanceof MessageRequest) {
MessageRequest msgRequest = (MessageRequest)command;
byte[] shortMessage = msgRequest.getShortMessage();
if (shortMessage == null || shortMessage.length == 0) {
return null;
}
if (SmppUtils.parseAlphabetFromDataCoding(msgRequest.getDataCoding()) == Alphabet.ALPHA_8_BIT) {
return shortMessage;
} else if (Charset.isSupported(configuration.getEncoding())) {
try {
return new String(shortMessage, configuration.getEncoding());
} catch (UnsupportedEncodingException e) {