public BatchProcess build(InputStream is, Map<String, String> runtimeAttributes) throws IOException {
        Document doc = null;
        try {
            DocumentBuilder docBuilder = XMLReaderUtils.getDocumentBuilder();
            doc = docBuilder.parse(is);
        } catch (TikaException | SAXException e) {
            throw new IOException(e);
        }
        Node docElement = doc.getDocumentElement();
        return build(docElement, runtimeAttributes);
    }
Builds a BatchProcess from runtime arguments and a
input stream of a configuration file.  With the exception of the QueueBuilder,
the builders choose how to adjudicate between
runtime arguments and the elements in the configuration file.
<p/>
This does not close the InputStream!

@param is                inputStream
@param runtimeAttributes incoming runtime attributes
@return batch process
@throws java.io.IOException
tika-batch/src/main/java/org/apache/tika/batch/builders/BatchProcessBuilder.java