class FolderDao extends NamedParameterJdbcDaoSupport {

    public List<FolderWithMetadata> loadParentFolders(Long folderId) {
        List<FolderWithMetadata> items =
                getJdbcTemplate().query(loadParentFoldersQuery, FolderParameters.getRowMapperWithMetadata(), folderId);
        return CollectionUtils.isEmpty(items) ? null : items;
    }

}