public static Query getQueryEntity(String desc, String comment, String caption,
            int bobotDesc, int bobotComment, int bobotCaption) {
        Query query = new Query();
        TreeBuilder tb = new TreeBuilder();

        query.setDescription(desc);
        query.setBobotDesc(bobotDesc / 100.0);
        query.setComment(comment);
        query.setBobotComment(bobotComment / 100.0);
        query.setCaption(caption);
        query.setBobotCaption(bobotCaption / 100.0);
        try {
            query.setTree(tb.getTree(query, getAbstractAnalyzer()));
        } catch (JAXBException ex) {
            Logger.getLogger(Extractor.class.getName()).log(Level.SEVERE, null, ex);
        } catch (Throwable ex) {
            Logger.getLogger(Extractor.class.getName()).log(Level.SEVERE, null, ex);
        }

        return query;
    }