title: Unable to find matching profile against choices error on hapi version 5.x for custom profiles
body: <p>I am using custom profiles for validating bundle resource of type document. While using reference to other resources within bundle , I am getting the below error :</p>
  <pre><code>&quot;Bundle.entry[0].resource.ofType(Composition).subject Unable to find matching profile for Patient/1 among choices: http://example.com/fhir/r4/StructureDefinition/Patient&quot;. 
  </code></pre>
  <p>This error is only coming on <code>HAPI Version 5.x</code> and not coming on <code>HAPI Version 4.2.0</code> I am using <code>FHIR version R4 v4.0.1</code>.</p>
  <p>It doesn't seem to be problem with code , as code is same for both HAPI versions mentioned above.</p>
  <p>Is it Bug in Hapi ? or am i missing some point regarding referencing.</p>