protected String getXMLifiedLogMsg(String type, String resourceId, String... attrs) {
        return getXMLifiedLogMsg(type, resourceId, null, attrs);
    }
Checks to see if the currentFile being processed (if there is one)
should be timed out (still being worked on after staleThresholdMillis).
<p>
If the consumer should be timed out, this will return the currentFile and
set the state to TIMED_OUT.
<p>
If the consumer was already timed out earlier or
is not processing a file or has been working on a file
for less than #staleThresholdMillis, then this will return null.
<p>

@param staleThresholdMillis threshold to determine whether the consumer has gone stale.
@return null or the file started that triggered the stale condition
tika-batch/src/main/java/org/apache/tika/batch/FileResourceConsumer.java