Buggy code:
public class WhistleStudyModel extends StudyModel { public static final String WINDOW_OPT_SUB_CATEGORY_ID = "1.<seq2seq4repair_space>Window<seq2seq4repair_space>Height<seq2seq4repair_space>Calibrator" ; public static final String BETA_OPT_SUB_CATEGORY_ID = "2.<seq2seq4repair_space>Beta<seq2seq4repair_space>Calibrator" ; public static final String LENGTH_OPT_SUB_CATEGORY_ID = "3.<seq2seq4repair_space>Length<seq2seq4repair_space>Optimizer" ; public static final String HOLESIZE_OPT_SUB_CATEGORY_ID = "4.<seq2seq4repair_space>Hole<seq2seq4repair_space>Size<seq2seq4repair_space>Optimizer" ; public static final String HOLESPACE_OPT_SUB_CATEGORY_ID = "5.<seq2seq4repair_space>Hole<seq2seq4repair_space>Spacing<seq2seq4repair_space>Optimizer" ; public static final String HOLE_OPT_SUB_CATEGORY_ID = "6.<seq2seq4repair_space>Hole<seq2seq4repair_space>Size+Spacing<seq2seq4repair_space>Optimizer" ; public static final String TAPER_OPT_SUB_CATEGORY_ID = "7.<seq2seq4repair_space>Taper<seq2seq4repair_space>Optimizer" ; public static final String HOLE_TAPER_OPT_SUB_CATEGORY_ID = "8.<seq2seq4repair_space>Hole<seq2seq4repair_space>and<seq2seq4repair_space>Taper<seq2seq4repair_space>Optimizer" ; public static final String ROUGH_CUT_OPT_SUB_CATEGORY_ID = "9.<seq2seq4repair_space>Rough-Cut<seq2seq4repair_space>Optimizer" ; public static final double MIN_HOLE_DIAMETER = 0.004 ; public static final double MAX_HOLE_DIAMETER = 0.0091 ; protected int blowingLevel ; protected Map < String , String > objectiveFunctionNames = new HashMap < String , String > ( ) ; public WhistleStudyModel ( ) { } protected void setLocalCategories ( ) { } @ Override public void setPreferences ( Preferences newPreferences ) { } public void setBlowingLevel ( int blowingLevel ) { } @ Override protected InstrumentCalculator getCalculator ( ) { } @ Override protected InstrumentTuner getInstrumentTuner ( ) { } @ Override protected Constraints getConstraints ( ) throws Exception { } @ Override protected BaseObjectiveFunction getObjectiveFunction ( int objectiveFunctionIntent ) throws Exception { } @ Override protected Class < ? extends ContainedXmlView > getDefaultViewClass ( String categoryName ) { } @ Override @ SuppressWarnings ( "unchecked" ) protected Map < String , Class < ContainedXmlView > [ ] > getToggleViewClasses ( ) { } @ Override public boolean addDataModel ( FileDataModel dataModel ) throws Exception { } @ Override public boolean removeDataModel ( FileDataModel dataModel ) { } @ Override public boolean replaceDataModel ( FileDataModel dataModel ) throws DataOpenException { String data = ( ( String ) ( dataModel . getData ( ) ) ) ; String categoryName = getCategoryName ( data ) ; if ( categoryName == null ) { removeDataModel ( dataModel ) ; <START_BUG> throw new DataOpenException ( "Data<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>represent<seq2seq4repair_space>a<seq2seq4repair_space>supported<seq2seq4repair_space>type." , DataOpenException . DATE_TYPE_NOT_SUPPORTED ) ; <END_BUG> } if ( categoryName . equals ( CONSTRAINTS_CATEGORY_ID ) ) { categoryName = OPTIMIZER_CATEGORY_ID ; } Category category = getCategory ( categoryName ) ; if ( category . replaceSub ( dataModel . getName ( ) , dataModel ) ) { category . setSelectedSub ( dataModel . getName ( ) ) ; return true ; } return false ; } @ Override public boolean isOptimizerFullySpecified ( String constraintsDirectory ) { } @ Override public File getConstraintsLeafDirectory ( String rootDirectoryPath ) { } @ Override public File getConstraintsLeafDirectory ( String rootDirectoryPath , Constraints constraints ) { } protected File makeConstraintsDirectoryPath ( String rootPath , String studyModelName , String objectiveFunctionName , int numberOfHoles ) { } }

Fix:
throw new DataOpenException ( "Data<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>represent<seq2seq4repair_space>a<seq2seq4repair_space>supported<seq2seq4repair_space>type." , DataOpenException . DATA_TYPE_NOT_SUPPORTED ) ;