*/
public SPDocument getLastDocForWSRefresh() {
SPDocument lastDocFromCrawlQueue = getLastDocInCrawlQueueOfActionTypeADD();
if (null == lastDocFromCrawlQueue) {
return lastDocProcessed;
} else if (lastDocFromCrawlQueue.compareTo(lastDocProcessed) > 0) {
return lastDocFromCrawlQueue;
} else {
return lastDocProcessed;
}
}