try {
ioxReader = new ch.interlis.iom_j.itf.ItfReader(new java.io.File(
itf));
IoxEvent event = ioxReader.read();
StartBasketEvent be = null;
do {
event = ioxReader.read();
if (event instanceof StartBasketEvent) {
be = (StartBasketEvent) event;
break;
}
}
while (!(event instanceof EndTransferEvent));
ioxReader.close();
ioxReader = null;
if (be == null) {
logger.error("no baskets in transfer-file");
throw new IllegalArgumentException(
"no baskets in transfer-file");
} else {
String namev[] = be.getType().split("\\.");
modelName = namev[0];
}
} finally {
if (ioxReader != null) {