return (Subscription) getEntityManager().createNamedQuery("findFindMailboxSubscriptionForUser")
.setParameter("userParam", user).setParameter("mailboxParam", mailbox).getSingleResult();
} catch (NoResultException e) {
return null;
} catch (PersistenceException e) {
throw new SubscriptionException(e);
}
}