class NotificationTemplateDao extends NamedParameterJdbcDaoSupport {

    @Transactional(propagation = Propagation.SUPPORTS)
    public NotificationTemplate loadNotificationTemplate(Long id) {
        List<NotificationTemplate> items = getJdbcTemplate().query(loadNotificationTemplateQuery,
                NotificationTemplateParameters.getRowMapper(), id);
        return !items.isEmpty() ? items.get(0) : null;
    }

}