// minutes to seconds, seconds to miliseconds
Integer interval = new Integer(formInterval.intValue() * 60 * 1000);
// then create a new Timer.
Timer newSupportEmailTimer = new Timer(true);
// wait a full two minutes for the next execution.
TimerTask newSupportEmailTask = new SupportEmailCheck(dataSource);
newSupportEmailTimer.schedule(newSupportEmailTask, 120000L, interval.longValue());
// And store our reference.
settings.setSupportEmailTimer(newSupportEmailTimer);
settings.setSupportEmailTask(newSupportEmailTask);
}