A little more refactoring - extract method and some namespace flattening.
Introduce convenience API to convert the Java String we get from the metadata reader into StringType required by Mix
Fix potential concurrency issue with multiple calls to transform()

Thanks to Phil Klinefelter for the advice on this.