sLogger.setLevel(Level.DEBUG);
sLogger.debug(f);
InputStream modelIn = localFs.open(f);
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);