//System.out.println("guard.isAllowed():'" + res +"'.");
return ((Boolean)res).booleanValue();
}
catch(NullPointerException ex)
{
throw new TransformationException("Expression value must return a boolean (found 'null' for '"
+ compiledScript + "')." );
}
catch(ClassCastException ex)
{
throw new TransformationException("Expression value must return a boolean ("
+ compiledScript + ")." );
}
catch(ScriptException ex)
{
throw new TransformationException(ex);
}
}