Keycloak 11.0.2 javaclient create a federation configuration

can someone give an example how this is done in this version?