* @return expression result as string.
*/
public String evaluateAsString(Node contextNode, String str, PrefixResolver resolver) {
try
{
Value value = evaluate(contextNode, str, resolver);
if (value == null)
{
return null;
}
return value.asString();
}
catch (final Exception e)
{
if (getLogger().isDebugEnabled()) {
getLogger().debug("Failed to evaluate '" + str + "'", e);