// if this is a HopObject, check if the property is defined
// in the type.properties db-mapping.
if (obj instanceof INode && ! "hopobject".equalsIgnoreCase(prototypeName)) {
DbMapping dbm = app.getDbMapping(prototypeName);
if (dbm != null) {
Relation rel = dbm.propertyToRelation(propname);
if (rel != null && (rel.isPrimitive() || rel.isCollection()))
return true;
}
}
Scriptable wrapped = Context.toObject(obj, global);