System.out.println("You want to create a new document...");
String srcLang = parser.getValue("srclang");
System.out.println("... with source language " + srcLang);
entry.setSourceLanguage(new SourceLanguage(srcLang));
String targetLang = parser.getValue("targetlang");
System.out.println("... with target language " + targetLang);
entry.setTargetLanguage(new TargetLanguage(targetLang));