protected static void addIdRepoAMSDKPlugin(SSOToken token,String orgName) throws SMSException, SSOException {
  ServiceConfigManager scm=new ServiceConfigManager(ServiceManager.REALM_SERVICE,token);
  ServiceConfig sc=scm.getOrganizationConfig(orgName,null);
  Map attributes=new HashMap();
  Set values=new HashSet();
  values.add("com.iplanet.am.sdk.AMSDKRepo");
  attributes.put("sunIdRepoClass",values);
  values=new HashSet();
  values.add(DNMapper.realmNameToAMSDKName(DNMapper.orgNameToDN(orgName)));
  attributes.put("amSDKOrgName",values);
  sc.addSubConfig("amsdk1","amSDK",0,attributes);
}

protected static void addIdRepoAMSDKPlugin ( SSOToken token , String orgName ) throws SMSException , SSOException { ServiceConfigManager scm = new ServiceConfigManager ( ServiceManager . REALM_SERVICE , token ) ; ServiceConfig sc = scm . getOrganizationConfig ( orgName , null ) ; Map attributes = new HashMap ( ) ; Set values = new HashSet ( ) ; values . add ( "com.iplanet.am.sdk.AMSDKRepo" ) ; attributes . put ( "sunIdRepoClass" , values ) ; values = new HashSet ( ) ; values . add ( DNMapper . realmNameToAMSDKName ( DNMapper . orgNameToDN ( orgName ) ) ) ; attributes . put ( "amSDKOrgName" , values ) ; sc . addSubConfig ( "amsdk1" , "amSDK" , 0 , attributes ) ; }
adds idrepo amsdk plugin to the given organization name
