public static ch.interlis.ili2c.metamodel.TransferDescription compileModel(
String importModelName) throws Ili2cException,
IllegalArgumentException {
ch.interlis.ili2c.metamodel.TransferDescription iliTd = null;
IliManager manager = new IliManager();
String repositories[] = new String[] { "http://www.catais.org/models/",
"http://models.geo.admin.ch/" };
manager.setRepositories(repositories);
ArrayList modelNames = new ArrayList();
modelNames.add(importModelName);
Configuration config = manager.getConfig(modelNames, 1.0);
iliTd = Ili2c.runCompiler(config);
if (iliTd == null) {
throw new IllegalArgumentException("INTERLIS compiler failed");
}