EntityTransaction tx = em.getTransaction ();
tx.begin();
Query partyQuery = em.createNamedQuery ("ptyPartyByKey");
partyQuery.setParameter ("ptyKey", ptyKey);
PartyModel party = (PartyModel)(partyQuery.getSingleResult ());
myLog.debug ("edit - retrieved {}", party);
if (checkContactExist (em, party, newContact)) {
myLog.info ("edit - contact {} for party {} already exists.", newContact, party);
}