sLogger.debug("input stream created: "+modelIn);
DataReader reader = new PlainTextFileDataReader(modelIn);
String modelType = reader.readUTF();
sLogger.debug("model type: "+modelType);
if (modelType.equals("Perceptron")) {
delegateModelReader = new PerceptronModelReader(reader);
}else if (modelType.equals("GIS")) {
delegateModelReader = new GISModelReader(reader);
}else {
throw new IOException("Unknown model format: "+modelType);
}