txw.lock( i, Transaction.WRITE );
// Read the rest of fields from the image file
try {
i.readImageFile();
} catch (Exception e ) {
txw.abort();
log.warn( "Error opening image file: " + e.getMessage() );
// The image does not exist, so it cannot be read!!!
return null;
}
i.calcHash();