try {
fleet = em.getReference(Fleet.class, id);
fleet.getFleetid();
} catch (EntityNotFoundException enfe) {
throw new NonexistentEntityException("The fleet with id " + id + " no longer exists.", enfe);
}
em.remove(fleet);
em.getTransaction().commit();
} finally {