Hi,
Is it possible to validate a FHIR message against profiles?

I've tried code below:
Code:
var ctx = Packages.ca.uhn.fhir.context.FhirContext.forR4();
...