}
// Use categories if possible
List<Page> dabCategories = wiki.getConfiguration().getDisambiguationCategories();
if ((dabCategories != null) && (dabCategories.size() > 0)) {
ApiCategoriesResult result = new ApiXmlCategoriesResult(wiki, httpClient);
ApiCategoriesRequest request = new ApiCategoriesRequest(wiki, result);
request.setDisambiguationStatus(pages);
return;
}