public static boolean isAMSDKConfigured(String realm){
  if (ServiceManager.isCoexistenceMode()) {
    return (true);
  }
  realm=DNUtils.normalizeDN(realm);
  Boolean answer=(Boolean)amsdkConfiguredRealms.get(realm);
  if (answer == null) {
    try {
      SSOToken token=(SSOToken)AccessController.doPrivileged(AdminTokenAction.getInstance());
      OrganizationConfigManagerImpl ocm=OrganizationConfigManagerImpl.getInstance(token,realm);
      String orgname=getAmsdkdn(token,ocm);
      answer=Boolean.valueOf(orgname != null);
    }
 catch (    SSOException ssoe) {
      answer=Boolean.FALSE;
    }
catch (    SMSException smse) {
      answer=Boolean.FALSE;
    }
    amsdkConfiguredRealms.put(realm,answer);
  }
  return (answer.booleanValue());
}

public static boolean isAMSDKConfigured ( String realm ) { if ( ServiceManager . isCoexistenceMode ( ) ) { return ( true ) ; } realm = DNUtils . normalizeDN ( realm ) ; Boolean answer = ( Boolean ) amsdkConfiguredRealms . get ( realm ) ; if ( answer == null ) { try { SSOToken token = ( SSOToken ) AccessController . doPrivileged ( AdminTokenAction . getInstance ( ) ) ; OrganizationConfigManagerImpl ocm = OrganizationConfigManagerImpl . getInstance ( token , realm ) ; String orgname = getAmsdkdn ( token , ocm ) ; answer = Boolean . valueOf ( orgname != null ) ; } catch ( SSOException ssoe ) { answer = Boolean . FALSE ; } catch ( SMSException smse ) { answer = Boolean . FALSE ; } amsdkConfiguredRealms . put ( realm , answer ) ; } return ( answer . booleanValue ( ) ) ; }
returns the true if amsdk plugin is configured for the realm , else returns false .
