class MetadataUploadManager {

    public List<MetadataEntity> uploadFromFile(Long parentId, MultipartFile file) {
        Assert.notNull(parentId,
                messageHelper.getMessage(MessageConstants.ERROR_PARAMETER_NULL_OR_EMPTY));
        MetadataParsingResult parsedData = readFile(parentId, file);
        return metadataEntityManager.createAndUpdateEntities(parentId, parsedData);
    }

}