public Function getFunction(Scope scope, String name, Class[] argTypes) {
return getFunction0(prepareNS(scope), name, argTypes);
}
private Function getFunction0(NameSpace bshns, String name, Class[] argTypes) {
try {
final BshMethod m = bshns.getMethod(
name, argTypes != null ? argTypes: new Class[0], false);
return m != null ? new BSHFunction(m): null;
} catch (UtilEvalError ex) {
throw UiException.Aide.wrap(ex);
}