private void addToCircleOfTrust(BaseConfigType config,String realm,String entityId){
  String classMethod="COTManager:addToCircleOfTrust :";
  try {
    if (config != null) {
      Map attr=IDFFMetaUtils.getAttributes(config);
      List cotAttr=(List)attr.get(COTConstants.COT_LIST);
      List cotList=new ArrayList(cotAttr);
      if ((cotList != null) && !cotList.isEmpty()) {
        for (Iterator iter=cotList.iterator(); iter.hasNext(); ) {
          String cotName=(String)iter.next();
          try {
            cotManager.addCircleOfTrustMember(realm,cotName,COTConstants.IDFF,entityId);
          }
 catch (          COTException ce) {
            debug.error(classMethod + cotName + " cotName");
          }
        }
      }
    }
  }
 catch (  Exception e) {
    debug.error(classMethod + "Error while adding entity " + entityId+ " to COT.",e);
  }
}

private void addToCircleOfTrust ( BaseConfigType config , String realm , String entityId ) { String classMethod = "COTManager:addToCircleOfTrust :" ; try { if ( config != null ) { Map attr = IDFFMetaUtils . getAttributes ( config ) ; List cotAttr = ( List ) attr . get ( COTConstants . COT_LIST ) ; List cotList = new ArrayList ( cotAttr ) ; if ( ( cotList != null ) && ! cotList . isEmpty ( ) ) { for ( Iterator iter = cotList . iterator ( ) ; iter . hasNext ( ) ; ) { String cotName = ( String ) iter . next ( ) ; try { cotManager . addCircleOfTrustMember ( realm , cotName , COTConstants . IDFF , entityId ) ; } catch ( COTException ce ) { debug . error ( classMethod + cotName + " cotName" ) ; } } } } } catch ( Exception e ) { debug . error ( classMethod + "Error while adding entity " + entityId + " to COT." , e ) ; } }
adds entity identifier to circle of trust .
