static void putEntityConfig(String realm,String entityId,EntityConfigElement config){
  String cacheKey=buildCacheKey(realm,entityId);
  if (config != null) {
    if (debug.messageEnabled()) {
      debug.message("SAML2MetaCache.putEntityConfig: cacheKey = " + cacheKey);
    }
    configCache.put(cacheKey,config);
  }
 else {
    if (debug.messageEnabled()) {
      debug.message("SAML2MetaCache.putEntityConfig: delete cacheKey = " + cacheKey);
    }
    configCache.remove(cacheKey);
  }
}

static void putEntityConfig ( String realm , String entityId , EntityConfigElement config ) { String cacheKey = buildCacheKey ( realm , entityId ) ; if ( config != null ) { if ( debug . messageEnabled ( ) ) { debug . message ( "SAML2MetaCache.putEntityConfig: cacheKey = " + cacheKey ) ; } configCache . put ( cacheKey , config ) ; } else { if ( debug . messageEnabled ( ) ) { debug . message ( "SAML2MetaCache.putEntityConfig: delete cacheKey = " + cacheKey ) ; } configCache . remove ( cacheKey ) ; } }
adds extended entity configuration under the realm to cache .
