@Override @RolesAllowed("user") @Transactional(readOnly = true) public Long countAnnotationsUsedNotOwned(@NotNull Class annotationType, long userID) { Set s = loadAnnotationsUsedNotOwned(annotationType, userID); if (s != null) return new Long(s.size()); return -1L; }