NSLog.out.appendln("Instance will live " + timeToLive + " seconds.");
// add a fudge factor of around 10 minutes
timeToLive += Math.random() * 600;
NSTimestamp exitDate = (new NSTimestamp()).timestampByAddingGregorianUnits(0, 0, 0, 0, 0, timeToLive);
WOTimer t = new WOTimer(exitDate, 0, this, "killInstance", null, null, false);
t.schedule();
}
int timeToDie = ERXProperties.intForKey("ERTimeToDie");
if (timeToDie > 0) {
log.info("Instance will not live past " + timeToDie + ":00.");
NSLog.out.appendln("Instance will not live past " + timeToDie + ":00.");