/** * Handles the {@link ComponentStatusNotificationReceivedEvent}. * * @param event the event to handle. */ @EventHandler public void handle(ComponentStatusNotificationReceivedEvent event) { if (event.getComponent() == ChargingStationComponent.EVSE) { ChargingStation chargingStation = repository.findOne(event.getChargingStationId().getId()); if (chargingStation != null) { updateEvseStatus(chargingStation, event.getComponentId().getId(), event.getStatusNotification().getStatus()); repository.createOrUpdate(chargingStation); } } }