public void doChange(ScoreDirector scoreDirector) {
TravelingSalesmanTour solution = (TravelingSalesmanTour) scoreDirector.getWorkingSolution();
scoreDirector.beforeProblemFactAdded(newLocation);
solution.getLocationList().add(newLocation);
scoreDirector.afterProblemFactAdded(newLocation);
Visit newVisit = new Visit();
newVisit.setId(newLocation.getId());
newVisit.setLocation(newLocation);
scoreDirector.beforeEntityAdded(newVisit);
solution.getVisitList().add(newVisit);
scoreDirector.afterEntityAdded(newVisit);
}
});