}
public static LibraryPresenationThumbs createListObjectLibraryByFileDocumentThumbs(Element fileElement){
try {
LibraryPresenationThumbs thumbMap = new LibraryPresenationThumbs();
thumbMap.setName(fileElement.getName());
Integer k = 0;
for ( @SuppressWarnings("unchecked")
Iterator<Element> i = fileElement.elementIterator(); i.hasNext(); i.next()) {
k++;
}
thumbMap.setThumbs(new LibraryPresentationThumb[k]);
k = 0;
for ( @SuppressWarnings("unchecked")
Iterator<Element> i = fileElement.elementIterator(); i.hasNext(); ) {
Element thumbElement = i.next();
//log.info("createListObjectLibraryByFileDocumentThumbs"+thumbElement);
LibraryPresentationThumb singleThumb = new LibraryPresentationThumb();
singleThumb.setName(thumbElement.getName());
singleThumb.setFilename(thumbElement.getText());
singleThumb.setLastmod(thumbElement.attribute("lastmod").getText());
singleThumb.setSize(Long.valueOf(thumbElement.attribute("size").getText()).longValue());
thumbMap.getThumbs()[k] = singleThumb;
k++;
}
return thumbMap;