class NotificationDao extends NamedParameterJdbcDaoSupport {

    public SystemNotification loadNotification(Long id) {
        List<SystemNotification> items = getJdbcTemplate().query(
                loadNotificationQuery,
                NotificationParameters.getRowMapper(),
                id
        );
        return !items.isEmpty() ? items.get(0) : null;
    }

}