class UIMAXMLConverterHelper {

    public JCas deserialize(InputStream inputStream, JCas newElement) throws IOException, UIMAException, InterruptedException, SAXException {

        try {
            newElement.reset();
            // deserialize CAS
            XCASDeserializer.deserialize(inputStream, newElement.getCas());
            //XmiCasDeserializer.deserialize(inputStream, newElement.getCas());
            return newElement;
        } finally {
            IOUtils.closeQuietly(inputStream);
        }

    }

    public  UIMAXMLConverterHelper(boolean formattedOutput);

}