class NotificationRegistrationStatusDaoHelper {

    public NotificationRegistrationStatusEntity getNotificationRegistrationStatusEntity(String code) throws ObjectNotFoundException
    {
        NotificationRegistrationStatusEntity notificationRegistrationStatusEntity = notificationRegistrationStatusDao.getNotificationRegistrationStatus(code);

        if (notificationRegistrationStatusEntity == null)
        {
            throw new ObjectNotFoundException(String.format("The notification registration status \"%s\" doesn't exist.", code));
        }

        return notificationRegistrationStatusEntity;
    }

}