code: private void updateEvseStatus(ChargingStation chargingStation, String componentId, ComponentStatus status) {
          for (Evse evse : chargingStation.getEvses()) {
              if (evse.getEvseId().equals(componentId)) {
                  evse.setStatus(status);
              }
          }
      }
docs: Updates the status of a Evse in the charging station object if the evse id matches the component id.
  
  @param chargingStation    charging stationidentifier.
  @param componentId        component identifier.
  @param status             new status.