protected synchronized void fireEvent(ProgressStatusEvent event) {
if (event == null) {
return;
}
if (event instanceof ProgressStatusMessage) {
ProgressStatusMessage msgEvent = (ProgressStatusMessage) event;
if (StringUtils.ok(msgEvent.getMessage())) {
lastMessage = new LastChangedMessage(msgEvent.getSourceId(), msgEvent.getMessage());
}
}
if (event instanceof ProgressStatusEventProgress) {
this.spinner = ((ProgressStatusEventProgress) event).isSpinner();
}