public ExprNode compileExpression(String expression) throws EPException {
   String toCompile = "select * from java.lang.Object.win:time(" + expression + ")";
   StatementSpecRaw raw =
       EPAdministratorHelper.compileEPL(
           toCompile,
           expression,
           false,
           null,
           services,
           SelectClauseStreamSelectorEnum.ISTREAM_ONLY);
   return raw.getStreamSpecs().get(0).getViewSpecs().get(0).getObjectParameters().get(0);
 }
 public AnnotationPart compileAnnotationToSODA(String annotationExpression) {
   String toCompile = annotationExpression + " select * from java.lang.Object";
   StatementSpecRaw raw =
       EPAdministratorHelper.compileEPL(
           toCompile,
           annotationExpression,
           false,
           null,
           services,
           SelectClauseStreamSelectorEnum.ISTREAM_ONLY);
   return StatementSpecMapper.unmap(raw.getAnnotations().get(0));
 }
 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());
 }
 public EvalFactoryNode compilePatternToNode(String pattern) throws EPException {
   StatementSpecRaw raw =
       EPAdministratorHelper.compilePattern(
           pattern, pattern, false, services, SelectClauseStreamSelectorEnum.ISTREAM_ONLY);
   return ((PatternStreamSpecRaw) raw.getStreamSpecs().get(0)).getEvalFactoryNode();
 }