catch*{core:logToFile('error','Failed to lookup function "'||$callback)}
try{function-lookup(xs:QName($callback),2)}
catch*{error($app-shared:FUNCTION_LOOKUP_ERROR,'Failed to lookup function "'||$callback||'". Error code was "'||$err:code||'". Error message was "'||$err:description||'".')}
defaultreturnerror($cache:UNSUPPORTED_PARAMETER_VALUE_ERROR,'The parameter value for $lease must be xs:dayTimeDuration()? or a function reference which must take exactly one argument.')