docs: static ModifiableSecurityRealm getModifiableSecurityRealm(OperationContext context) throws OperationFailedException {
          ServiceRegistry serviceRegistry = context.getServiceRegistry(true);
          PathAddress currentAddress = context.getCurrentAddress();
          RuntimeCapability<Void> runtimeCapability = MODIFIABLE_SECURITY_REALM_RUNTIME_CAPABILITY.fromBaseCapability(currentAddress.getLastElement().getValue());
          ServiceName realmName = runtimeCapability.getCapabilityServiceName();
          ServiceController<ModifiableSecurityRealm> serviceController = getRequiredService(serviceRegistry, realmName, ModifiableSecurityRealm.class);
          if ( serviceController.getState() != ServiceController.State.UP ){
              try {
                  serviceController.awaitValue(500, TimeUnit.MILLISECONDS);
              } catch (IllegalStateException | InterruptedException | TimeoutException e) {
                  throw ROOT_LOGGER.requiredServiceNotUp(serviceController.getName(), serviceController.getState());
              }
          }
          return serviceController.getValue();
      }