logger.trace("Creating new meta file for file '{}'.", file.getName());
MetaFile metaFile = null;
if (context.isLargeFile()) {
metaFile = new MetaFileLarge(context.generateOrGetMetaKeys().getPublic(), context.getMetaChunks());
} else {
// create new meta file with new version
FileVersion version = new FileVersion(0, FileUtil.getFileSize(file), System.currentTimeMillis(),
context.getMetaChunks());
List<FileVersion> versions = new ArrayList<FileVersion>(1);