class NotificationRegistrationDaoHelper {

    public NotificationRegistrationEntity getNotificationRegistration(String namespace, String name)
    {
        NotificationRegistrationEntity notificationRegistration = notificationRegistrationDao.getNotificationRegistration(namespace, name);
        if (notificationRegistration == null)
        {
            throw new ObjectNotFoundException("The notification registration with namespace \"" + namespace + "\" and name \"" + name + "\" was not found.");
        }
        return notificationRegistration;
    }

}