String text = configuration.getText();
if (text == null) {
throw new FactoryException("No XPath provided!");
}
try {
JaxenXPathExpression expression = new JaxenXPathExpression(text);
expression.setNamespaceContext(createNamespaceContext(configuration));
return new Condition[]{ new JaxenCondition(rule, expression) };
}
catch (Exception e) {
throw new FactoryException(e);
}