if (!courtesyCommand.equals("")) {
logger.info("Initializing courtesy monitor");
if (courtesyPollingInterval == 0) {
courtesyPollingInterval = DEFAULT_COURTESY_POLLING_INTERVAL;
}
ExecCourtesyMonitor exec = new ExecCourtesyMonitor(courtesyCommand, courtesyWorkingDirectory);
exec.startPolling(courtesyPollingInterval, TimeUnit.SECONDS);
courtesyMonitor = exec;
} else {
courtesyMonitor = new UnconditionalCourtesyMonitor();
}