@RequestMapping(value = "/{wsName}", method = RequestMethod.POST,consumes=MediaType.MULTIPART_FORM_DATA_VALUE)
public @ResponseStatus(value=HttpStatus.CREATED)
@ResponseBody JSONArr create(@PathVariable String wsName, HttpServletRequest request )
throws IOException, FileUploadException {
WorkspaceInfo ws = findWorkspace(wsName, catalog());
// Resource resource = dataDir().get(ws).get("icons"); // GEOS-6690
GeoServerResourceLoader rl = geoServer.getCatalog().getResourceLoader();
Resource styles = rl.get(Paths.path("workspaces",ws.getName(),"styles"));
ServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory());
@SuppressWarnings("unchecked")
List<FileItem> input = (List<FileItem>) upload.parseRequest(request);