class FhirMetadataRetrieval extends ComponentMetadataRetrieval {

    static String includeResources(String specification, String... resourceTypes) throws IOException {
        if (resourceTypes != null && resourceTypes.length != 0) {
            XmlDocument document = MAPPER.readValue(specification, XmlDocument.class);
            includeResources(null, document, resourceTypes);
            return MAPPER.writer((PrettyPrinter) null).writeValueAsString(document);
        }

        return specification;
    }

}