public static TestParser create(ExtensionRegistry registry, XMLMapper xmlMapper, TestModelType type) {
TestParser testParser;
String root;
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);