try {
List<Contentlet> cons = capi.search(luceneQuery.toString(), 0, batchSize, null, expireUSer, false);
while (cons.size() > 0) {
capi.unpublish(cons, expireUSer, false);
Thread.sleep(500);
cons = capi.search(luceneQuery.toString(), 0, batchSize, null, expireUSer, false);
}
} catch (Exception e) {