class Lutaml::Hal::Link

def realize(register: nil)

via the `register:` parameter.
If the Link does not have a register, a register needs to be provided explicitly
This method will use the global register according to the source of the Link object.
Fetch the actual resource this link points to.
def realize(register: nil)
  register = find_register(register)
  raise "No register provided for link resolution (class: #{self.class}, href: #{href})" if register.nil?
  Hal.debug_log "Resolving link href: #{href} using register"
  register.resolve_and_cast(self, href)
end