Database db = ODMG.getODMGDatabase();
db.makePersistent( settings );
RawConversionSettings oldSettings = rawSettings;
txw.lock( settings, Transaction.WRITE );
if ( oldSettings != null ) {
txw.lock( oldSettings, Transaction.WRITE );
db.deletePersistent( oldSettings );
}
} else {
// s is null so this should not be raw image
if ( rawSettings != null ) {