int photoCount = photos.size();
int processedPhotos = 0;
while ( iter.hasNext() ) {
PhotoInfo photo = (PhotoInfo) iter.next();
for ( int n = 0; n < photo.getNumInstances(); n++ ) {
ImageInstance inst = photo.getInstance( n );
/*
Hashes are generated on demand, so this call calculates the hash
if it has not been calculated previously.
*/
byte[] hash = inst.getHash();
}
// Check tha also the photo info object contains original contains hash.
byte[] origHash = photo.getOrigInstanceHash();
processedPhotos++;
fireStatusChangeEvent( new SchemaUpdateEvent( PHASE_CREATING_HASHES,