if ("user".equalsIgnoreCase (prototype)) { anonymous = false; } else if (parentHandle != null) {
if (parentHandle != null && lastNameCheck < Math.max (dbmap.getLastTypeChange(), lastmodified)) {
    public String getElementName () {	// if subnodes are also mounted as properties, try to get the "nice" prop value	// instead of the id by turning the anonymous flag off.	// Work around this for user objects to alsways return a URL like /users/username	if ("user".equalsIgnoreCase (prototype)) {	    anonymous = false;	} else if (parentHandle != null) {	    try {	        Node p = parentHandle.getNode (nmgr);	        DbMapping parentmap = p.getDbMapping ();	        Relation prel = parentmap.getPropertyRelation();	        if (prel != null && prel.subnodesAreProperties && prel.accessor != null) {	            String propname = dbmap.columnNameToProperty (prel.accessor);	            String propvalue = getString (propname, false);	            if (propvalue != null && propvalue.length() > 0) {	                setName (propvalue);	                anonymous = false;	                // nameProp = localrel.propName;	            } else {	                anonymous = true;	            }	        } else if (p.contains (this) > -1) {	           anonymous = true;	        }	    } catch (Exception ignore) {	        // just fall back to default method	    }	}    	return anonymous || name == null || name.length() == 0 ? id : name;    }