code: @Override
    public Realm removeRealmApplicationId(String realmName, ApplicationId appId) {
      RealmSet set = this.realmNameToRealmSet.get(realmName);
  
      if (set != null) {
        Realm r = set.getRealm(appId);
        set.removeRealm(appId);
        if (set.size() == 0 && !realmName.equals(this.localRealmName)) {
          this.realmNameToRealmSet.remove(realmName);
          this.allRealmsSet.remove(realmName);
        }
        return r;
      }
  
      return null;
    }
docs: /*
  (non-Javadoc)
  @see org.jdiameter.client.api.controller.IRealmTable#removeRealmApplicationId(java.lang.String, org.jdiameter.api.ApplicationId)