XmlCalabashBuilder
The builder for constructing an XML Calabash configuration.
There's an unfortunate chicken-and-egg problem here. The builder can configure the DocumentManager (this allows you to provide your own DocumentManager with, perhaps your own org.xmlresolver.XMLResolver). But it's also possible (and useful) to be able to configure mime type mappings through the builder. In particular, these may be provided by the com.xmlcalabash.config.ConfigurationLoader.
So the builder needs the document manager and the document manager is configured through the builder. And many users will not need or want to provide a custom DocumentManager. So the workaround is that calls to set mimetype mappings are cached by the builder until build time. At build time, the DocumentManager is resolved (either it was provided or it's constructed) and those mappings are applied to the DocumentManager.mimetypesFileTypeMap.
Functions
Add mapping from mime types to filename extensions.