printDirEntry(os, element);
}
printFooter(os);
} else {
RepositoryContent content = (RepositoryContent) currentItem;
String contentType = content.getContentType();
if( contentType != null )
rsp.setContentType(contentType);
InputStream is = content.getContent();
// DL Element
IOUtils.copy(is, os);
os.flush();