docs: public void addCapabilityRequirements(OperationContext context, Resource resource, ModelNode attributeValue) {
          @SuppressWarnings("deprecation")
          CapabilityReferenceRecorder refRecorder = getReferenceRecorder();
          if (refRecorder != null) {
              // We can't process expressions
              if (attributeValue.getType() != ModelType.EXPRESSION) {
                  ModelNode value = attributeValue.isDefined() ? attributeValue : (defaultValue != null) ? defaultValue : new ModelNode();
                  refRecorder.addCapabilityRequirements(context, resource, name, value.isDefined() ? value.asString() : null);
              }
          }
      }