@Override
 public void onClick() {
   locationService.remove(location);
   getSession()
       .info(
           new StringResourceModel(
                   "locationRemoved", this, null, new Object[] {location.getName()})
               .getString());
   setResponsePage(LocationsPage.class);
 }
 public AddEditLocationPage(Long locationId) {
   Location location = locationService.findById(locationId);
   setDefaultModel(new Model<Location>(location));
   initGui();
 }