@Override
 public StoreFactory create(KeycloakSession session) {
   MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
   return new MongoStoreFactory(connection.getInvocationContext(), session);
 }
 @Override
 public RealmProvider create(KeycloakSession session) {
   MongoConnectionProvider connection = session.getProvider(MongoConnectionProvider.class);
   return new MongoRealmProvider(session, connection.getInvocationContext());
 }