private void setLogger(ILogger logger) {
    if (logger == null) {
      System.err.println("[RemoteServerConnection WARN] Logger isn't assigned.");
      this.logger = new FakeLogger();
    }
    else {
      this.logger = logger;
    }
  }