while(iter.hasNext()) {
String key = iter.next();
Object value = row.get(key);
if("thumbnail".equalsIgnoreCase(key)) {
ValueMap vm = (ValueMap) value;
Thumbnail thumbnail = new Thumbnail();
fillThumbnail(thumbnail, vm);
((Image) responseItem).setThumbnail(thumbnail);
}
else if("StaticThumbnail".equalsIgnoreCase(key)) {
ValueMap vm = (ValueMap) value;
Thumbnail thumbnail = new Thumbnail();
fillThumbnail(thumbnail, vm);
((Video) responseItem).setThumbnail(thumbnail);
}
else {
ReflectionUtil.callMethod(responseItem, key, value);