@Override
public void updateFileMeta(long fileId, MetaInfo metaInfo) {
//todo: validation?
final FileMetaData fileMetaData = checkPresence(fileMetaDataRepository.findOne(fileId));
final FileMetaAnnotations info = new FileMetaAnnotations(fileMetaData.getId());
fileMetaData.setMetaInfo(info);
setAnnotations(metaInfo, info);
fileMetaDataRepository.save(fileMetaData);
LOGGER.info("Annotations for file with id '" + fileId + "' has been set");
}