XmlExtractor class converted to Java. Removed the dependency on Scala.