According to GATE documentation:
The jobs are run using GATE Embedded version 8.3, and your application must use GATE plugins that are compatible with this version. The following plugins are pre-loaded by default in order to support additional input data formats: Format_Twitter, Format_MediaWiki, Format_PubMed, Format_FastInfoset and Format_DataSift.
This change entails adding the plugin dependencies to build.gradle, and finding a way to add the mime-type before we open the document.