Inventory inventory;
try {
inventory = em.getReference(Inventory.class, id);
inventory.getId();
} catch (EntityNotFoundException enfe) {
throw new NonexistentEntityException("The inventory with id " + id + " no longer exists.", enfe);
}
List<String> illegalOrphanMessages = null;
Collection<Storagetab> storagetabCollectionOrphanCheck = inventory.getStoragetabCollection();
for (Storagetab storagetabCollectionOrphanCheckStoragetab : storagetabCollectionOrphanCheck) {
if (illegalOrphanMessages == null) {