Buggy code:
public abstract class SequenceUpdater implements Cacheable { protected DataDictionaryImpl _dd ; protected String _uuidString ; protected SequenceGenerator _sequenceGenerator ; private long _lockTimeoutInMillis ; public SequenceUpdater ( ) { } public SequenceUpdater ( DataDictionaryImpl dd ) { } protected abstract SequenceGenerator createSequenceGenerator ( TransactionController readOnlyTC ) throws StandardException { } protected abstract boolean updateCurrentValueOnDisk ( TransactionController tc , Long oldValue , Long newValue , boolean wait ) throws StandardException { } protected StandardException tooMuchContentionException ( ) { } public void clean ( boolean forRemove ) throws StandardException { } public boolean isDirty ( ) { } public Object getIdentity ( ) { } public void clearIdentity ( ) { } public Cacheable createIdentity ( Object key , Object createParameter ) throws StandardException { } public Cacheable setIdentity ( Object key ) throws StandardException { } public void getCurrentValueAndAdvance ( NumberDataValue returnValue ) throws StandardException { } private Long peekAtCurrentValue ( ) throws StandardException { } public boolean updateCurrentValueOnDisk ( Long oldValue , Long newValue ) throws StandardException { LanguageConnectionContext lcc = SequenceUpdater . getLCC ( ) ; if ( lcc == null ) { if ( SanityManager . DEBUG ) { SanityManager . ASSERT ( ( oldValue == null ) , "We<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>flushing<seq2seq4repair_space>unused<seq2seq4repair_space>sequence<seq2seq4repair_space>values<seq2seq4repair_space>here." ) ; } ContextService csf = ContextService . getFactory ( ) ; ContextManager cm = csf . getCurrentContextManager ( ) ; AccessFactory af = _dd . af ; TransactionController dummyTransaction = af . getTransaction ( cm ) ; boolean retval = updateCurrentValueOnDisk ( dummyTransaction , oldValue , newValue , false ) ; dummyTransaction . commit ( ) ; dummyTransaction . destroy ( ) ; return retval ; } TransactionController executionTransaction = lcc . getTransactionExecute ( ) ; TransactionController nestedTransaction = null ; try { nestedTransaction = executionTransaction . startNestedUserTransaction ( false ) ; } catch ( StandardException se ) { } if ( nestedTransaction != null ) { try { return updateCurrentValueOnDisk ( nestedTransaction , oldValue , newValue , false ) ; } catch ( StandardException se ) { <START_BUG> if ( ! ( se . getMessageId ( ) . equals ( LOCK_TIMEOUT ) ) ) { <END_BUG> throw se ; } } finally { nestedTransaction . commit ( ) ; nestedTransaction . destroy ( ) ; } } return updateCurrentValueOnDisk ( executionTransaction , oldValue , newValue , true ) ; } protected SequencePreallocator makePreallocator ( TransactionController tc ) throws StandardException { } private StandardException missingAllocator ( String propertyName , String className , Exception e ) { } private boolean isNumber ( String text ) { } protected int getLockTimeout ( ) { } private static LanguageConnectionContext getLCC ( ) { } private StandardException unimplementedFeature ( ) { } public static final class SyscolumnsUpdater extends SequenceUpdater { private RowLocation _sequenceRowLocation ; public SyscolumnsUpdater ( ) { } public SyscolumnsUpdater ( DataDictionaryImpl dd ) { } protected SequenceGenerator createSequenceGenerator ( TransactionController readOnlyTC ) throws StandardException { } protected boolean updateCurrentValueOnDisk ( TransactionController tc , Long oldValue , Long newValue , boolean wait ) throws StandardException { } protected StandardException tooMuchContentionException ( ) { } } public static final class SyssequenceUpdater extends SequenceUpdater { private RowLocation _sequenceRowLocation ; public SyssequenceUpdater ( ) { } public SyssequenceUpdater ( DataDictionaryImpl dd ) { } protected SequenceGenerator createSequenceGenerator ( TransactionController readOnlyTC ) throws StandardException { } protected boolean updateCurrentValueOnDisk ( TransactionController tc , Long oldValue , Long newValue , boolean wait ) throws StandardException { } } }

Fix:
if ( ! ( se . isLockTimeout ( ) ) ) {