if (type == TestModelType.STANDALONE) {
StandaloneXml standaloneXml = new StandaloneXml(null, Executors.newCachedThreadPool(), registry);
testParser = new TestParser(type, standaloneXml, standaloneXml);
root = "server";
} else if (type == TestModelType.DOMAIN) {
DomainXml domainXml = new DomainXml(null, Executors.newCachedThreadPool(), registry);
testParser = new TestParser(type, domainXml, domainXml);
root = "domain";
} else if (type == TestModelType.HOST) {
HostXml hostXml = new HostXml("master");
testParser = new TestParser(type, hostXml, hostXml);