public void createIDRepo(String realmName,String idRepoName,String idRepoType,Map values) throws AMConsoleException {
  String[] params={realmName,idRepoName,idRepoType};
  logEvent("ATTEMPT_CREATE_ID_REPO",params);
  values.remove("idRepoLoadSchema");
  try {
    ServiceConfigManager svcCfgMgr=new ServiceConfigManager(IdConstants.REPO_SERVICE,getUserSSOToken());
    ServiceConfig cfg=svcCfgMgr.getOrganizationConfig(realmName,null);
    if (cfg == null) {
      cfg=createOrganizationConfig(realmName,idRepoType);
    }
    cfg.addSubConfig(idRepoName,idRepoType,0,values);
    logEvent("SUCCEED_CREATE_ID_REPO",params);
  }
 catch (  SMSException e) {
    String strError=getErrorString(e);
    String[] paramsEx={realmName,idRepoName,idRepoType,strError};
    logEvent("SMS_EXCEPTION_CREATE_ID_REPO",paramsEx);
    throw new AMConsoleException(strError);
  }
catch (  SSOException e) {
    String strError=getErrorString(e);
    String[] paramsEx={realmName,idRepoName,idRepoType,strError};
    logEvent("SSO_EXCEPTION_CREATE_ID_REPO",paramsEx);
    throw new AMConsoleException(strError);
  }
}

public void createIDRepo ( String realmName , String idRepoName , String idRepoType , Map values ) throws AMConsoleException { String [ ] params = { realmName , idRepoName , idRepoType } ; logEvent ( "ATTEMPT_CREATE_ID_REPO" , params ) ; values . remove ( "idRepoLoadSchema" ) ; try { ServiceConfigManager svcCfgMgr = new ServiceConfigManager ( IdConstants . REPO_SERVICE , getUserSSOToken ( ) ) ; ServiceConfig cfg = svcCfgMgr . getOrganizationConfig ( realmName , null ) ; if ( cfg == null ) { cfg = createOrganizationConfig ( realmName , idRepoType ) ; } cfg . addSubConfig ( idRepoName , idRepoType , 0 , values ) ; logEvent ( "SUCCEED_CREATE_ID_REPO" , params ) ; } catch ( SMSException e ) { String strError = getErrorString ( e ) ; String [ ] paramsEx = { realmName , idRepoName , idRepoType , strError } ; logEvent ( "SMS_EXCEPTION_CREATE_ID_REPO" , paramsEx ) ; throw new AMConsoleException ( strError ) ; } catch ( SSOException e ) { String strError = getErrorString ( e ) ; String [ ] paramsEx = { realmName , idRepoName , idRepoType , strError } ; logEvent ( "SSO_EXCEPTION_CREATE_ID_REPO" , paramsEx ) ; throw new AMConsoleException ( strError ) ; } }
creates id repo object .
