@Override @RolesAllowed("user") @Transactional(readOnly = true) public Map getTaggedObjectsCount(@NotNull @Validate(Long.class) Set<Long> tagIds, Parameters options) { Map<Long, Long> counts = new HashMap<Long, Long>(); Iterator<Long> i = tagIds.iterator(); Long id; while (i.hasNext()) { id = i.next(); counts.put(id, countTaggedObjects(id)); } return counts; }