} else if (current instanceof DataModel) {
model = new SequenceDataModel((DataModel) current);
} else if (current instanceof List) {
model = new SequenceDataModel(new ListDataModel((List<?>) current));
} else if (Object[].class.isAssignableFrom(current.getClass())) {
model = new SequenceDataModel(new ArrayDataModel((Object[]) current));
} else if (current instanceof ResultSet) {
model = new SequenceDataModel(new ResultSetDataModel((ResultSet) current));
} else if (current instanceof Result) {
model = new SequenceDataModel(new ResultDataModel((Result) current));
} else {