EdifactModel model1 = EDIParser.parseMappingModel(getClass().getResourceAsStream("../MSG1-model.xml"));
EdifactModel model2 = EDIParser.parseMappingModel(getClass().getResourceAsStream("../MSG2-model.xml"));
UNEdifactInterchangeParser parser = new UNEdifactInterchangeParser();
parser.setMappingsRegistry(new DefaultMappingsRegistry(model1, model2));
parser.ignoreNewLines(true);
MockContentHandler handler;
handler = new MockContentHandler();
NamespaceDeclarationStack namespaceDeclarationStack = new NamespaceDeclarationStack(parser);