Context context = SFProcess.getRootLocator() .getRootProcessCompound(((Prim)this.entry).sfDeployedHost() ).sfContext(); if (context.contains(this.getEntry())) { return  (String)context.keyFor(this.getEntry());
StringBuffer refStr = new StringBuffer(); refStr.append("HOST \""); refStr.append(((Prim)entry).sfDeployedHost().getCanonicalHostName()); refStr.append("\":"); refStr.append(((Prim)entry).sfDeployedProcessName()); Reference refPC = Reference.fromString(refStr.toString());  pcEntry = (ProcessCompound)((Prim)entry).sfResolve(refPC); try { Object prim = ((Prim)entry).sfResolve( ((Prim) entry).sfCompleteName()); if (pcEntry.sfContainsValue(prim)) { entryName =  (String)pcEntry.sfAttributeKeyFor(prim); } } catch (Exception ex2) { if (pcEntry.sfContainsValue(this.getEntry())) { entryName =  (String)pcEntry.sfAttributeKeyFor(this.getEntry()); }
    private String getRDNProcessCompound() {        //Special case when Entry is Registered in ProcessCompound.        try {            Context context = SFProcess.getRootLocator()            .getRootProcessCompound(((Prim)this.entry).sfDeployedHost()                                    ).sfContext();            if (context.contains(this.getEntry())) {                return  (String)context.keyFor(this.getEntry());            }        } catch (Exception ex) {            //@Todo log this.            //ex.printStackTrace();        }        return "";    }