We can make admin requests to have RealmModel and ClientModel
available in KeycloakContext (currently is null). This will help that SPIs (like UserFederationMapper SPI) can use them from KeycloakContext instead of passing the realm or client instance to all methods.
We can possibly set RealmModel in RealmsAdminResource.getRealmAdmin . Similarly ClientModel can be set later before ClientResource is instantiated.