folder.getEntity().getId(), filename);
if (file != null) {
byte[] content = getDao().getFileDao().getFileContent(file);
if (file.getSize() < CacheService.MEMCACHE_LIMIT) {
getSystemService().getFileCache().put(request.getPathInfo(),
new FileCacheItem(file, content,
VosaoContext.getInstance().getUser() == null));
}
sendFile(file, content, request, response);
}
else {