private static void updateEmbeddedIdRepo(String orgName,String configName,String entry) throws SMSException, SSOException {
  SSOToken token=AccessController.doPrivileged(AdminTokenAction.getInstance());
  ServiceConfigManager scm=new ServiceConfigManager(token,IdConstants.REPO_SERVICE,"1.0");
  ServiceConfig sc=scm.getOrganizationConfig(orgName,null);
  if (sc != null) {
    ServiceConfig subConfig=sc.getSubConfig(configName);
    if (subConfig != null) {
      Map<String,Set<String>> configMap=subConfig.getAttributes();
      Set<String> vals=configMap.get("sun-idrepo-ldapv3-config-ldap-server");
      vals.add(entry);
      HashMap<String,Set<String>> mp=new HashMap<String,Set<String>>(2);
      mp.put("sun-idrepo-ldapv3-config-ldap-server",vals);
      subConfig.setAttributes(mp);
    }
  }
}

private static void updateEmbeddedIdRepo ( String orgName , String configName , String entry ) throws SMSException , SSOException { SSOToken token = AccessController . doPrivileged ( AdminTokenAction . getInstance ( ) ) ; ServiceConfigManager scm = new ServiceConfigManager ( token , IdConstants . REPO_SERVICE , "1.0" ) ; ServiceConfig sc = scm . getOrganizationConfig ( orgName , null ) ; if ( sc != null ) { ServiceConfig subConfig = sc . getSubConfig ( configName ) ; if ( subConfig != null ) { Map < String , Set < String > > configMap = subConfig . getAttributes ( ) ; Set < String > vals = configMap . get ( "sun-idrepo-ldapv3-config-ldap-server" ) ; vals . add ( entry ) ; HashMap < String , Set < String > > mp = new HashMap < String , Set < String > > ( 2 ) ; mp . put ( "sun-idrepo-ldapv3-config-ldap-server" , vals ) ; subConfig . setAttributes ( mp ) ; } } }
update embedded idrepo instance with new embedded opends isntance .
