code: private boolean reset(ChargingStationId id, ResetType type) {
          ChargePointService chargePointService = this.createChargingStationService(id);
  
          ResetRequest request = new ResetRequest();
          request.setType(type);
  
          ResetResponse response = chargePointService.reset(request, id.getId());
  
          boolean hasReset;
  
          switch (response.getStatus()) {
              case ACCEPTED:
                  LOG.info("Reset was accepted");
                  hasReset = true;
                  break;
              case REJECTED:
                  LOG.info("Reset was rejected");
                  hasReset = false;
                  break;
              default:
                  throw new AssertionError("Unknown ResetStatus: " + response.getStatus());
          }
  
          return hasReset;
      }
docs: Reset a charging station.
  
  @param id   the charging station's id.
  @param type the type of reset (i.e. soft or hard).
  @return true if the charging station has reset, false if it hasn't.