Scala program for extracting information from TEI xml files and sending it to Solr in JSON format