private void gatherFinishedRequests() {
requestQueueLock.lock();
try {
for (WMSRequest request: finishedRequests) {
GeorefImage img = images[modulo(request.getXIndex(),dax)][modulo(request.getYIndex(),day)];
if (img.equalPosition(request.getXIndex(), request.getYIndex())) {
img.changeImage(request.getState(), request.getImage());
}
}
} finally {
requestQueueLock.unlock();