public void delete(Country object) {
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
try {
Country entity = em.find(Country.class, object.getCountryCode());
em.remove(entity);
em.getTransaction().commit();
} catch (Exception e) {
Logger.getLogger(CountryController.class.getName()).
log(Level.SEVERE, "Error deleting " + object, e);