byte[] content) {
List<FileChunkEntity> result = new ArrayList<FileChunkEntity>();
List<byte[]> chunks = ArrayUtil.makeChunks(content, ENTITY_SIZE_LIMIT);
int i = 0;
for (byte[] chunk : chunks) {
result.add(new FileChunkEntity(file.getId(), chunk, i++));
}
return result;
}