PMML pmml = new PMML(getSourceReader(pmmlUri));
if (PMML.Models.MINING.equals(pmml.model_type))
model = new MiningModel(pmml);
else if (PMML.Models.TREE.equals(pmml.model_type))
model = new TreeModel(pmml);
else if (PMML.Models.REGRESSION.equals(pmml.model_type))
model = new RegressionModel(pmml);
else if (PMML.Models.CLUSTERING.equals(pmml.model_type))
model = new ClusteringModel(pmml);
else if (PMML.Models.GENERALIZED_REGRESSION.equals(pmml.model_type))