if(maxWindow > 0) {
long closestDistance = Math.abs(wantTime -
result.getCaptureDate().getTime());
if(closestDistance > maxWindow) {
throw new AnchorWindowTooSmallException("Closest is " +
closestDistance + " seconds away, Window is " +
maxWindow);
}
}
}