Request request = dao.createSearchRequest(context);
if (labelParam != null) {
request.label(labelParam);
}
if (categoryIdParam != null) {
request.categoryId(categoryIdParam);
}
if (maxRecordsParam > 0) {
request.maxRecords(maxRecordsParam);
}
Element tmp = request.xmlResult();