@Override
    public InputSource resolveEntity(String publicId, String systemId) {
        return new InputSource(new ClosedInputStream());
    }
Returns an empty stream. This will make an XML parser silently
ignore any external entities.
tika-core/src/main/java/org/apache/tika/sax/OfflineContentHandler.java