public void read(Document document) throws MimeTypeException {
        try {
            Transformer transformer = XMLReaderUtils.getTransformer();
            transformer.transform(new DOMSource(document), new SAXResult(this));
        } catch (TransformerException | TikaException e) {
            throw new MimeTypeException("Failed to parse type registry", e);
        }
    }
Set the pool size for cached XML parsers.

@param poolSize
tika-core/src/main/java/org/apache/tika/mime/MimeTypesReader.java