if (type == ImportType.VARIABLES) {
creator = new XmlVariableCreator();
} else if (type == ImportType.XLIFF) {
String sourcelang = req.getParameter("sourcelang");
String targetlang = req.getParameter("targetlang");
creator = new XliffCreator(sourcelang, targetlang);
} else {
creator = new XmlTextCreator();
}
Document doc = creator.createFile(DbHandler.getConnection(),
xmlDocName);