} else if (value instanceof List) {
model = new ListDataModel((List) value);
} else if (Object[].class.isAssignableFrom(value.getClass())) {
model = new ArrayDataModel((Object[]) value);
} else if (value instanceof ResultSet) {
model = new ResultSetDataModel((ResultSet) value);
} else if (value instanceof Result) {
model = new ResultDataModel((Result) value);
} else if (value instanceof Collection) {
model = new CollectionDataModel((Collection) value);
} else {