Batch Java-Scala Conversion