if (obj instanceof IPathElement) {
if (obj != null && app.getPrototypeName(obj) != null) {
        public Object wrap(Context cx, Scriptable scope, Object obj, Class staticType)  {            // System.err.println ("Wrapping: "+obj);            if (obj instanceof INode) {                return getNodeWrapper((INode) obj);            }            if (obj instanceof IPathElement) {                return getElementWrapper(obj);            }            if (obj instanceof SystemMap) {                return new MapWrapper((Map) obj, RhinoCore.this);            }            if (obj instanceof String) {                return obj;            }            return super.wrap(cx, scope, obj, staticType);        }