return core.hasFunction(protoname, fname.replace('.', '_'));
return core.hasFunction(protoname, fname);
    public boolean hasFunction(Object obj, String fname) {        // Treat HopObjects separately - otherwise we risk to fetch database        // references/child objects just to check for function properties.        if (obj instanceof INode) {            String protoname = ((INode) obj).getPrototype();            return core.hasFunction(protoname, fname.replace('.', '_'));        }        Scriptable op = obj == null ? global : Context.toObject(obj, global);        Object func = ScriptableObject.getProperty(op, fname.replace('.', '_'));        if (func != null && func != Undefined.instance && func instanceof Function) {            return true;        }        return false;    }