documentMap.limit = limit;
documentMap.offset = offset;
setDatabase(db);
setServletWriter(out);
}
<BUG>public BestDocumentsForGivenTopic(String topicId, Integer limit, Integer offset, Database db, PrintWriter out, String term, boolean hierarchicalTopicEnabled) {
</BUG>
documentMap = new SelectMap();
documentMap.select.add("DOCUMENT.DOCUMENT_ID");
documentMap.select.add("DOCUMENT_TERM_TOPIC.TOPIC_ID");

documentMap.limit = limit;
documentMap.offset = offset;
setDatabase(db);
setServletWriter(out);
}
public BestDocumentsForGivenTopic(Integer topicId, Integer limit, Integer offset, Database db, PrintWriter out, String term, boolean hierarchicalTopicEnabled) {
documentMap = new SelectMap();
documentMap.select.add("DOCUMENT.DOCUMENT_ID");
documentMap.select.add("DOCUMENT_TERM_TOPIC.TOPIC_ID");
