code: protected void recordCapabilitiesAndRequirements(OperationContext context, AttributeDefinition attributeDefinition,
                                                       ModelNode newValue, ModelNode oldValue) {
          Resource resource = context.readResource(PathAddress.EMPTY_ADDRESS);
          attributeDefinition.removeCapabilityRequirements(context, resource, oldValue);
          attributeDefinition.addCapabilityRequirements(context, resource, newValue);
      }
docs: Record any new requirements for other {@link org.jboss.as.controller.capability.RuntimeCapability capabilities}
  that now exist as a result of this operation, or remove any existing requirements that no longer exist.
  
  @param context the context. Will not be {@code null}
  @param attributeDefinition the definition of the attribute being modified. Will not be {@code null}
  @param newValue the new value of the attribute
  @param oldValue the previous value of the attribute