protected void writeResponse(byte[] response) throws IOException {
   os.write(response);
   os.flush();
   smsc.writeBinarySmppsim(response);
 }