docs: protected void processFilterReplaceDialog(FilterReplaceDialog dialog) {
  		// ZAP: Created new method for inheritance reasons to allow for better
  		// re-usability and extensibility.
  		
  	    if (dialog.getTxtPattern().getText().equals("")) {
  	        pattern = null;
  			// disable filter when empty pattern is entered
  			setEnabled(false);
  	    } else {
  	        pattern = Pattern.compile(dialog.getTxtPattern().getText(), Pattern.MULTILINE | Pattern.CASE_INSENSITIVE);
  			// enable filter when pattern is entered
  			setEnabled(true);
  	    }
  	    
  	    txtReplace = dialog.getTxtReplaceWith().getText();
  	}