return instance;
}
public PresentationObject parseLibraryFileToObject(String filePath){
try {
PresentationObject lMap = new PresentationObject();
SAXReader reader = new SAXReader();
Document document = reader.read(filePath);
Element root = document.getRootElement();
Integer k = 0;
for (@SuppressWarnings("unchecked")
Iterator<Element> i = root.elementIterator(); i.hasNext(); ) {
Element item = i.next();
log.error(item.getName());
String nodeVal = item.getName();
if (nodeVal.equals("originalDocument")){
lMap.setOriginalDocument(this.createListObjectLibraryByFileDocument(item));
} else if (nodeVal.equals("pdfDocument")){
lMap.setPdfDocument(this.createListObjectLibraryByFileDocument(item));
} else if (nodeVal.equals("swfDocument")) {
lMap.setSwfDocument(this.createListObjectLibraryByFileDocument(item));
} else if (nodeVal.equals("thumbs")) {
lMap.setThumbs(this.createListObjectLibraryByFileDocumentThumbs(item));
}
k++;
}