class TagsServiceImpl implements TagsService {

    @Override
    public List<Tag> findTipsAndTricksTagsByNames(List<String> tipsAndTricksTagNames) {
        List<String> lowerCaseTagNames = tipsAndTricksTagNames.stream()
            .map(String::toLowerCase)
            .collect(Collectors.toList());
        List<Tag> tags = tagRepo.findTipsAndTricksTagsByNames(lowerCaseTagNames);
        if (tags.isEmpty()) {
            throw new TagNotFoundException(ErrorMessage.TAGS_NOT_FOUND);
        }
        return tags;
    }

}