static void putFederation(String realm,String federationId,FederationElement federation){
  String cacheKey=buildCacheKey(realm,federationId);
  if (federation != null) {
    if (debug.messageEnabled()) {
      debug.message("WSFederationMetaCache.putFederation: " + "cacheKey = " + cacheKey);
    }
    federationCache.put(cacheKey,federation);
  }
 else {
    if (debug.messageEnabled()) {
      debug.message("WSFederationMetaCache.putFederation: delete cacheEey = " + cacheKey);
    }
    federationCache.remove(cacheKey);
    configCache.remove(cacheKey);
  }
}

static void putFederation ( String realm , String federationId , FederationElement federation ) { String cacheKey = buildCacheKey ( realm , federationId ) ; if ( federation != null ) { if ( debug . messageEnabled ( ) ) { debug . message ( "WSFederationMetaCache.putFederation: " + "cacheKey = " + cacheKey ) ; } federationCache . put ( cacheKey , federation ) ; } else { if ( debug . messageEnabled ( ) ) { debug . message ( "WSFederationMetaCache.putFederation: delete cacheEey = " + cacheKey ) ; } federationCache . remove ( cacheKey ) ; configCache . remove ( cacheKey ) ; } }
adds the standard metadata entity descriptor under the realm to cache .
