private static SAXParser newSAXParser() throws TikaException {
        SAXParserFactory factory = SAXParserFactory.newInstance();
        factory.setNamespaceAware(false);
        try {
            factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
        } catch (ParserConfigurationException | SAXException e) {
            LOG.warn("can't set secure processing feature on: " + factory.getClass() +
                    ". User assumes responsibility for consequences.");
        }
        try {
            return factory.newSAXParser();
        } catch (ParserConfigurationException | SAXException e) {
            throw new TikaException("Can't create new sax parser", e);
        }
    }
Set the pool size for cached XML parsers.

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