for(Edimap messageModel : ediDirectory.getMessageModels()) {
addModel(messageModel, pathPrefix, modelListBuilder, messageEntryWriter, archive);
}
// Now create XML Schemas
Set<EPackage> packages = new ECoreGenerator().generatePackages(ediDirectory);
String pluginID = "org.milyn.edi.unedifact.unknown";
if (urn.lastIndexOf(':') > 0) {
pluginID = urn.substring(0, urn.lastIndexOf(':')).replace(':', '.').toLowerCase();
}
Archive schemas = SchemaConverter.INSTANCE.createArchive(packages, pluginID, pathPrefix);