def consumer?(provider_intent, deployment_plan)
      return true if provider_intent.shared

      link_consumers = deployment_plan.model.link_consumers
      link_consumers = link_consumers.select do |consumer|
        consumer.serial_id == @serial_id
      end

      link_consumers.any? do |consumer|
        consumer.intents.any? do |consumer_intent|
          can_be_consumed?(consumer, provider_intent, consumer_intent, @serial_id)
        end
      end
    end
def consumer?(provider_intent, deployment_plan)
      return true if provider_intent.shared

      link_consumers = deployment_plan.model.link_consumers
      link_consumers = link_consumers.select do |consumer|
        consumer.serial_id == @serial_id
      end

      link_consumers.any? do |consumer|
        consumer.intents.any? do |consumer_intent|
          can_be_consumed?(consumer, provider_intent, consumer_intent, @serial_id)
        end
      end
    end
A consumer which is within the same deployment