Location location = locationDao.findOne(locationId);
if (location == null) {
throw new ObjectRetrievalFailureException(Ticket.class, locationId);
}
LocationScan locationScan = new LocationScan();
locationScan.setLocation(location);
locationScan.setTimestamp(new Date());
ticket.getLocationScans().add(locationScan);
store(ticket);
return location;
}