Update PatternRecognizer.java