}
Metadata.modified(layer, new Date());
Catalog cat = geoServer.getCatalog();
cat.save(resource);
cat.save(layer);
return IO.layer(new JSONObj(), layer, req);
}
@RequestMapping(value="/{wsName}/{name}/style", method = RequestMethod.PUT, consumes = YsldHandler.MIMETYPE)
public @ResponseBody void style(@RequestBody byte[] rawStyle, @PathVariable String wsName,