<CONTEXT></BUG>{suffix = state.getIncrementalSerialSuffix();}<extra_id_0>{suffix = state.getIncrementalSerialSuffix();}<BUG>else if ( state.getSuffix() != null && !state.getSuffix().isEmpty())</BUG>{suffix = state.getSuffix().substring( 0, state.getSuffix().indexOf( '-' ) );}Version v = new Version( oldValue );</CONTEXT>
final DependencyState dState = session.getState( DependencyState.class );final boolean ignoreSuffix = dState.getStrictIgnoreSuffix();final VersioningState state = session.getState( VersioningState.class );String newVersion = newValue;String suffix = null;if ( state.getIncrementalSerialSuffix() != null && !state.getIncrementalSerialSuffix().isEmpty() )else if ( state.getSuffix() != null && !state.getSuffix().isEmpty() )