if (files.isEmpty()) {
log.warn("No meta file provided");
throw new BadRequestException(r);
} else {
try {
FileItem item = files.values().iterator().next();
File metaFile = metaStore.storeMetaData(r, item.getInputStream());
// copy content to a file
File tempData = File.createTempFile("milton-zsync", null);
FileOutputStream fDataOut = new FileOutputStream(tempData);
r.sendContent(fDataOut, null, null, null);