Buggy code:
private static final SimpleDateFormat FORMATTER = new SimpleDateFormat ( "yyyy-MM-dd<seq2seq4repair_space>HH:mm" ) ; private static final long MILLIS_IN_DAY = 86400000 ; @ Autowired private DataDefinitionService dataDefinitionService ; @ Autowired private TreeNumberingService treeNumberingService ; @ Autowired private NumberService numberService ; @ Value ( "${setAsDemoEnviroment}" ) private boolean setAsDemoEnviroment ; @ Override void loadData ( final String dataset , final String locale ) { } private void changeAdminPassword ( ) { } @ Override void readData ( final Map < String , String > values , final String type , final Element node ) { } private void addWorkstationType ( final Map < String , String > values ) { } private void addStaff ( final Map < String , String > values ) { } private void addOperations ( final Map < String , String > values ) { } private void addProduct ( final Map < String , String > values ) { } private void addSubstitute ( final String name , final String number , final Entity product , final int priority ) { } private void addSubstituteComponent ( final Entity substitute , final Entity product , final double quantity ) { } private void prepareTechnologiesForOrder ( final Map < String , String > values ) { } private void addOrderGroup ( final Map < String , String > values ) { } private void addOrder ( final Map < String , String > values ) { } private void addBatches ( final Map < String , String > values ) { } private void addTrackingRecord ( final Map < String , String > values ) { } private void addGenealogyTables ( final Map < String , String > values ) { } private void addDivision ( final Map < String , String > values ) { } private void addCostCalculation ( final Map < String , String > values ) { } private void addStokckArea ( final Map < String , String > values ) { } private void addTransformation ( final Map < String , String > values ) { } private void addStockCorrection ( final Map < String , String > values ) { } private void addTransfer ( final Map < String , String > values ) { } private void addTechnology ( final Map < String , String > values ) { } private void addTechnologyOperationComponentsForTableAdvanced ( final Entity technology ) { } private void addTechnologyOperationComponentsForStoolAdvanced ( final Entity technology ) { } private void addTechnologyOperationComponentsForTabouretAdvanced ( final Entity technology ) { } private Entity addRecordOperationProductInComponent ( final Entity product , final BigDecimal usedQuantity , final BigDecimal plannedQuantity , final BigDecimal balance ) { } private Entity addRecordOperationProductOutComponent ( final Entity product , final BigDecimal usedQuantity , final BigDecimal plannedQuantity , final BigDecimal balance ) { } private Entity addOperationComponent ( final Entity technology , final Entity parent , final Entity operation ) { } private void addProductInComponent ( final Entity component , final BigDecimal quantity , final Entity product ) { } private void addProductOutComponent ( final Entity component , final BigDecimal quantity , final Entity product ) { } private void addMaterialRequirements ( final Map < String , String > values ) { Entity requirement = dataDefinitionService . get ( MATERIALREQUIREMENTS_PLUGIN_IDENTIFIER , MATERIALREQUIREMENTS_MODEL_MATERIALREQUIREMENTS ) . create ( ) ; requirement . setField ( L_NAME , values . get ( L_NAME ) ) ; requirement . setField ( L_DATE , values . get ( L_DATE ) ) ; requirement . setField ( L_WORKER , values . get ( L_WORKER ) ) ; requirement . setField ( "onlyComponents" , values . get ( "onlycomponents" ) ) ; requirement . setField ( L_DATE , values . get ( L_DATE ) ) ; requirement . setField ( L_GENERATED , values . get ( L_GENERATED ) ) ; <START_BUG> requirement . setField ( L_FILE_NAME , values . get ( "filename" ) ) ; <END_BUG> requirement . setField ( "orders" , Lists . newArrayList ( getOrderByNumber ( values . get ( "order1" ) ) , getOrderByNumber ( values . get ( "order2" ) ) ) ) ; if ( TestSamplesLoader . LOG . isDebugEnabled ( ) ) { TestSamplesLoader . LOG . debug ( ( ( ( ( ( ( ( ( ( ( "Add<seq2seq4repair_space>test<seq2seq4repair_space>material<seq2seq4repair_space>requirement<seq2seq4repair_space>{name=" + ( requirement . getField ( L_NAME ) ) ) + ",<seq2seq4repair_space>date=" ) + ( requirement . getField ( L_DATE ) ) ) + ",<seq2seq4repair_space>worker=" ) + ( requirement . getField ( L_WORKER ) ) ) + ",<seq2seq4repair_space>onlyComponents=" ) + ( requirement . getField ( "onlyComponents" ) ) ) + ",<seq2seq4repair_space>generated=" ) + ( requirement . getField ( L_GENERATED ) ) ) + "}" ) ) ; } requirement = dataDefinitionService . get ( MATERIALREQUIREMENTS_PLUGIN_IDENTIFIER , MATERIALREQUIREMENTS_MODEL_MATERIALREQUIREMENTS ) . save ( requirement ) ; validateEntity ( requirement ) ; } private void addWorkPlan ( final Map < String , String > values ) { } void addProductionRecord ( final Map < String , String > values ) { } void addProductionCounting ( final Map < String , String > values ) { } void addProductionBalance ( final Map < String , String > values ) { } void addQualityControl ( final Map < String , String > values ) { } private Entity getRandomStaff ( ) { } private Entity getMachine ( final String id ) { } private Entity getTechnologyByNumber ( final String number ) { } private Entity getDefaultTechnologyForProduct ( final Entity product ) { } private Entity getOrderOperationComponentByNumber ( final String number , final Entity order ) { } private Entity getShiftByName ( final String name ) { } private Entity getOrderByNumber ( final String number ) { } private Entity getProductByNumber ( final String number ) { } private Entity getProductionRecordByNumber ( final String number ) { } private Entity getOperationByNumber ( final String number ) { } private Entity getStaffByNumber ( final String number ) { }

Fix:
requirement . setField ( L_FILE_NAME , values . get ( L_FILE_NAME ) ) ;