ArrayList<JPodThmbnailCallable> tasks = null;
if (pageTree != null && modelList != null && modelList.size() > 0) {
tasks = new ArrayList<JPodThmbnailCallable>(modelList.size());
for (VisualPageListItem pageItem : modelList) {
PDPage pdPage = pageTree.getPageAt(pageItem.getPageNumber() - 1);
tasks.add(new JPodThmbnailCallable(pdPage, pageItem, getPanel(), getCurrentId()));
}
}
return tasks;
}