public MatchRecognizeRegEx compileMatchRecognizePatternToSODA( String matchRecogPatternExpression) { String toCompile = "select * from java.lang.Object match_recognize(measures a.b as c pattern (" + matchRecogPatternExpression + ") define A as true)"; StatementSpecRaw raw = EPAdministratorHelper.compileEPL( toCompile, matchRecogPatternExpression, false, null, services, SelectClauseStreamSelectorEnum.ISTREAM_ONLY); return StatementSpecMapper.unmap(raw.getMatchRecognizeSpec().getPattern()); }