*/
public JcronWatch getWatcher(List cronMessages, Node alarmsNode)
throws InvalidConfigFileFormatException {
// Set alarm's environment
JcronAlarmListener jcronAlarmListener = new JcronAlarmListener(
Console.getTestFlag(0));
JcronWatch jcronWatcher = new JcronWatch(jcronAlarmListener,
cronMessages, Console.getTestFlag(0));
jcronAlarmListener.setWatcher(jcronWatcher);
// Parse the JcronAlarms child elements.
if (!this.parseJcronAlarmsNode(alarmsNode, jcronAlarmListener)) {
return null;
}