try {
if ("Feature".equals(modelType)) {
builder = new FeatureBasedMRFBuilder(env, model);
} else if ("GreedyConstrained".equals(modelType)) {
builder = new GreedyConstrainedMRFBuilder(env, model);
} else if (modelType.equals("New")) {
builder = new CascadeFeatureBasedMRFBuilder(env, model);
} else {
throw new ConfigurationException("Unrecognized model type: " + modelType);
}