if (parent == null) {
Object cdParent = sfResolveParent(); if (cdParent == null) {
    public Reference sfCompleteName() {        if (parent == null) {            return new Reference();        }        Reference r = parent.sfCompleteName();        Object name = parent.sfAttributeKeyFor(this);        if (name != null) {            r.addElement(ReferencePart.here(name));        }        return r;    }