@Override @Transactional(readOnly = true) public Page<TeamTag> findTeamsWithTag( Pageable pageable, TeamTagSearchFilter teamTagSearchFilter) { Set<Tag> tagSet = teamTagSearchFilter.getTagSet(); Set<Tag> newTagSet = new HashSet<>(); for (Tag tag : tagSet) { tag = tagPersistence.reload(new Tag(tag.getId())); if (tag != null) { newTagSet.add(tag); } } teamTagSearchFilter.setTagSet(newTagSet); return teamTagPersistence.findTeamsWithTag(pageable, teamTagSearchFilter); }