if (msg == null) { return ; }
  protected void writeOut ( OutputStream outputstream, String msg ) {    if (msg == null) {      return ;    }    try {      outputstream.write(msg.getBytes());    } catch (IOException e) {      Log.error("Error: couldnt open OutputStream for writing");    }  }