if (now.after(lastProgressEventFired) || currentStep == totalNumberOfSteps) {
ProgressEvent event = new ProgressEvent(currentStep, totalNumberOfSteps);
for (int i = 0; i < progressListeners.size(); i++) {
ProgressListener listener = (ProgressListener) progressListeners.get(i);
listener.progressUpdated(event);
}
lastProgressEventFired = Calendar.getInstance();
}
}