}
// Merge it to get a managed entity back
- Contact managedContact = this.getEntityManager().getReference(contact.getClass(), contact.getContactId());
+ final Contact managedContact = this.getEntityManager().getReference(contact.getClass(), contact.getContactId());
// Remove it from database
this.getEntityManager().remove(managedContact);
this.getLoggerBeanLocal().logTrace(MessageFormat.format("{0}.isContactRegistered: contact={1} - CALLED!", this.getClass().getSimpleName(), contact)); //NOI18N
// Create query
- Query query = this.getEntityManager().createNamedQuery("SearchContact"); //NOI18N
+ final Query query = this.getEntityManager().createNamedQuery("SearchContact"); //NOI18N
// Set parameter
query.setParameter("contact", contact); //NOI18N
// Try it
try {
// Try to find instance
- Contact dummy = (Contact) query.getSingleResult();
+ final Contact dummy = (Contact) query.getSingleResult();
// Mark as found
isFound = true;