public void putQuery(Recommendation recommendation) {
        counter++;
        recommendations.put(counter, recommendation);
        recommendation.setId(counter);
        if (!queries.containsKey(recommendation.getWriter().getId()))
            queries.put(recommendation.getWriter().getId(), new LinkedHashSet<Recommendation>());
        queries.get(recommendation.getWriter().getId()).add(recommendation);
    }