can numWus be negative?
If so do you need to check it on line below:
>resp.setPageEndAt(pageStart + archiveWUsReader->getNumberOfWUsReturned());