XmlReader xmlReader;
if (type == ImportType.TEXTS) {
//We are validating a text xml file
fileHolder = (FileHolder)fetch.getObject("IMPORTTEXT_XMLTOIMPORT");
schema = XMLImporter.getSchema("textSchema");
xmlReader = new XmlTextReader();
} else {
//We are validating a variables xml file
fileHolder = (FileHolder)fetch.getObject("IMPORTVARIABLES_XMLTOIMPORT");
schema = XMLImporter.getSchema("variableSchema");
xmlReader = new XmlVariableReader();