private void checkValues(ConfigurationProperty p, List<String> values) throws InterpreterPropertyException { Pattern pattern = Pattern.compile(p.getValidatingExpression()); for (String value : values) { Matcher m = pattern.matcher(value); if (!m.matches()) { throw new InterpreterPropertyException( "Could not parse the value for interpreter property " + p + " expected to be in the form " + p.getExample()); } } }