};
// This TimerTask displays warning messages.
TimerTask warningMessageTask = new TimerTask() {
private NSTimestamp _downTime = new NSTimestamp();
private String _downTimeString = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(_downTime);
@Override
public void run() {
if (! _isConnected) {
double elapsTime = (new NSTimestamp().getTime() - _downTime.getTime()) / (60.0d * 60.0d * 1000.0d);
String elapsTimeString = new DecimalFormat("#,##0.0").format(elapsTime);
NSLog.err.appendln(ERCNNotificationCoordinator.LOG_HEADER
+ "JMS connection has been down for " + elapsTimeString + " hours. "
+ "(Since " + _downTimeString + ")");