} catch ( PhotoNotFoundException e ) {
// No action, there just were no matching instances in database
}
if ( oldInstance != null ) {
// There is an existing instance, check whether the data matches
if ( oldInstance.doConsistencyCheck() ) {
PhotoInfo photo = null;
try {
photo = PhotoInfo.retrievePhotoInfo(oldInstance.getPhotoUid());
} catch (PhotoNotFoundException ex) {
ex.printStackTrace();