public void destroy(Integer id) throws NonexistentEntityException {
EntityManager em = getEntityManager();
try {
em.getTransaction().begin();
MwKeystore mwKeystore;
try {
mwKeystore = em.getReference(MwKeystore.class, id);
mwKeystore.getId();
} catch (EntityNotFoundException enfe) {
throw new NonexistentEntityException("The mwKeystore with id " + id + " no longer exists.", enfe);
}
em.remove(mwKeystore);
em.getTransaction().commit();