Utils.getXWikiContext(componentManager).setDatabase(database);
}
}
protected List<SearchResult> searchSpaces(String keywords, String wikiName, boolean hasProgrammingRights,
int number, int start) throws QueryException, IllegalArgumentException, UriBuilderException, XWikiException
<BUG>{
String database = Utils.getXWikiContext(componentManager).getDatabase();</BUG>
try {
List<SearchResult> result = new ArrayList<SearchResult>();
if (keywords == null) {

Utils.getXWikiContext(componentManager).setDatabase(database);
}
}
protected List<SearchResult> searchSpaces(String keywords, String wikiName, boolean hasProgrammingRights,
int number, int start) throws QueryException, IllegalArgumentException, UriBuilderException, XWikiException
{
XWiki xwikiApi = Utils.getXWikiApi(componentManager);
String database = Utils.getXWikiContext(componentManager).getDatabase();
try {
List<SearchResult> result = new ArrayList<SearchResult>();
if (keywords == null) {
