JS-244 ThML filter needs to build the current SWORD standard OSIS variants.

Also removed a spurious creation of a StringBuilder and unused imports.