if (lastTime == null)
lastTime = new Date(0);
objs = sdp.fetchAfter(lastTime);
if (objs != null) {
for (int i = 0; i < objs.size(); i++) {
SearchEnabled obj = (SearchEnabled) objs.get(i);
SearchProxy.add(obj);
if (i > 0 && (i + 1) % 10 == 0)
log.info((i + 1) + " document's indexes added.");
}
saveLastActiveTime(providerClass, new Date());