public void deleteSelected() {
   countryFacade.delete(selectedCountry);
   selectedCountry = null;
 }
 public void createNew() {
   Country country = new Country();
   country.setName(countryName);
   country.setCode(countryCode);
   countryFacade.create(country);
 }
 public void saveSelected() {
   selectedCountry.setName(countryName);
   selectedCountry.setCode(countryCode);
   countryFacade.update(selectedCountry);
 }
 public List<Country> getCountryList() {
   return countryFacade.readAll();
 }