public static void resetCAS(JCas jcas) {
        if (jcas != null) {
            jcas.reset();
        }
    }
Resets the CAS (Common Analysis System), emptying it of all content.

@param jcas JCas object
tika-parsers/tika-parsers-ml/tika-parser-nlp-module/src/main/java/org/apache/tika/parser/ctakes/CTAKESUtils.java