void (String expression) { if (expression == null || "".equals(expression.trim())) { throw new InvalidExpressionException("expression == null or empty"); } expression = substituteMacrosesWithRegexps(expression); Pattern.compile(expression, Pattern.MULTILINE); }