class ReloadService {

    @EventListener
    public synchronized void reload(ApplicationStartedEvent event) {
        vehicleRepository.vehicles().forEach(vehicleService::addVehicle);
        locationRepository.locations().forEach(locationService::addLocation);
    }

    @Autowired  ReloadService(
            VehicleRepository vehicleRepository,
            VehicleService vehicleService,
            LocationRepository locationRepository,
            LocationService locationService);

}