code: public void replaceShortMessage(String messageId,
              TypeOfNumber sourceAddrTon, NumberingPlanIndicator sourceAddrNpi,
              String sourceAddr, String scheduleDeliveryTime,
              String validityPeriod, RegisteredDelivery registeredDelivery,
              byte smDefaultMsgId, byte[] shortMessage) throws PDUException,
              ResponseTimeoutException, InvalidResponseException,
              NegativeResponseException, IOException {
          
          ensureTransmittable("replaceShortMessage");
          
          ReplaceSmCommandTask replaceSmTask = new ReplaceSmCommandTask(
                  pduSender(), messageId, sourceAddrTon, sourceAddrNpi,
                  sourceAddr, scheduleDeliveryTime, validityPeriod,
                  registeredDelivery, smDefaultMsgId, shortMessage);
  
          executeSendCommand(replaceSmTask, getTransactionTimer());
      }
docs: /* (non-Javadoc)
  @see org.jsmpp.session.ClientSession#replaceShortMessage(java.lang.String, org.jsmpp.bean.TypeOfNumber, org.jsmpp.bean.NumberingPlanIndicator, java.lang.String, java.lang.String, java.lang.String, org.jsmpp.bean.RegisteredDelivery, byte, byte[])