} else if (current instanceof Result) {
setDataModel(new ResultDataModel((Result) current));
} else if (current instanceof Collection) {
setDataModel(new CollectionDataModel((Collection) current));
} else {
setDataModel(new ScalarDataModel(current));
}
return (model);
}