protected void fireCsState(byte[] address, CommandStationState commandStationState) { LOGGER .info("The state of the command station has changed: {}, address: {}", commandStationState, ByteUtils.bytesToHex(address)); synchronized (messageListeners) { Set<MessageListener> safeListeners = Collections.unmodifiableSet(messageListeners); for (MessageListener l : safeListeners) { l.csState(address, commandStationState); } } }