protected String getDCNodeDN(SSOToken token, String orgDN) throws AMException { try { String domainName = getCanonicalDomain(token, orgDN); if (domainName != null) { DomainComponentTree dcTree = new DomainComponentTree(token, new Guid(DCTREE_START_DN)); String dcNodeDN = dcTree.mapDomainToDN(domainName); return CommonUtils.formatToRFC(dcNodeDN); } else { return null; } } catch (InvalidDCRootException e) { debug.error("DCTree.getDCNodeDN(): Invalid DC root ", e); throw new AMException(AMSDKBundle.getString("343"), "343"); } catch (UMSException e) { debug.error("DCTree.getDCNodeDN(): Unable to get dc node dn " + "for: " + orgDN, e); throw new AMException(AMSDKBundle.getString("344"), "344"); } }