throw new RuntimeException("Unable to create directory for file upload");
}
// pass off the uploaded file to the importer
Directory dir = new Directory(uploadDir);
dir.accept(files.next());
return doImport(dir, ws);
}
@RequestMapping(value = "/{wsName}", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)