solved ticket https://issues.jboss.org/browse/RAILO-2257 (function evaluate)