docs: private static void updateLibertyServer() throws Exception {
          ServerConfiguration server = emptyConfiguration.clone();
  
          LdapRegistry ldap = new LdapRegistry();
          ldap.setId("ldap1");
          ldap.setRealm("LDAPRealm");
          ldap.setHost("localhost");
          ldap.setPort(String.valueOf(ds.getListenPort()));
          ldap.setBaseDN(SUB_DN);
          ldap.setBindDN(InMemoryLDAPServer.getBindDN());
          ldap.setBindPassword(InMemoryLDAPServer.getBindPassword());
          ldap.setLdapType("Custom");
          LdapEntityType type1 = new LdapEntityType("Group", null, new String[] { "groupOfNames" }, new String[] { GROUP_BASE_DN });
          LdapEntityType type2 = new LdapEntityType("PersonAccount", null, new String[] { "inetOrgPerson" }, new String[] { USER_BASE_DN });
          ldap.getLdapEntityTypes().add(type1);
          ldap.getLdapEntityTypes().add(type2);
  
          LDAPFatUtils.createFederatedRepository(server, "LDAPRealmFed", new String[] { SUB_DN });
  
          server.getLdapRegistries().add(ldap);
  
          updateConfigDynamically(libertyServer, server);
      }