return asset;
}
private Folder convertSection(Section section) {
Folder folder = new Folder();
folder.setCategory(section.getLevelType());
folder.setCategoryIndex(BigInteger.valueOf(section.getSectionSequence()));
folder.setDisplay(section.getHeading());
folder.setReference(section.getShortHeading());
folder.setTitle(section.getTextHeading());
folder.setBackendID(BigInteger.valueOf(section.getId()));
folder.setId(section.getCodeId() + "-" + section.getId());
List<Folder> subfolders = folder.getFolder();
//Content file = folder.getFile();
// process content (aka file)
ContentFull content = contentFullDao.findContentFullBySection(section
.getId());
if (content != null) {
Content jaxbContent = convertFullContent(content);
if (content.isNotes()) {
folder.setNotes(jaxbContent);
} else {
folder.setFile(jaxbContent);
}
// files.add(convertFulLContent(content));
}
// recursively process children