} else {
LOGGER.info("Discovery/Eureka is not enabled, use the dummy instance validator.");
instanceValidator = new DummyASGInstanceValidator();
}
if (configuration().getBoolOrElse("simianarmy.janitor.rule.oldEmptyASGRule.enabled", false)) {
ruleEngine.addRule(new OldEmptyASGRule(monkeyCalendar,
(int) configuration().getNumOrElse(
"simianarmy.janitor.rule.oldEmptyASGRule.launchConfigAgeThreshold", 50),
(int) configuration().getNumOrElse(
"simianarmy.janitor.rule.oldEmptyASGRule.retentionDays", 10),
instanceValidator