Reference r = parent.sfCompleteName(); Object name = parent.sfAttributeKeyFor(this);
Reference r = null; Object name =null; if (cdParent instanceof ComponentDescription){ r = ((ComponentDescription)cdParent).sfCompleteName(); name = ((ComponentDescription)cdParent).sfAttributeKeyFor(this);  } else if (cdParent instanceof ComponentDescription){ try { r = ((Prim)cdParent).sfCompleteName(); name = ((Prim)cdParent).sfAttributeKeyFor(this);  } catch (RemoteException ex) { if ((sfLog()!= null) && sfLog().isErrorEnabled()) sfLog().err(ex.getMessage(),ex); else ex.printStackTrace(); } } else { return new Reference(); }
    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;    }