If isStringMatchActivated==true then you must override the method isLineInteresting with something like
line.contains("DEFECT");