public @ResponseBody JSONObj patch(@PathVariable String wsName, @PathVariable String name, @RequestBody JSONObj obj, HttpServletRequest req) throws IOException {
Catalog cat = geoServer.getCatalog();
StoreInfo store = cat.getStoreByName(wsName, name, StoreInfo.class );
boolean refresh = define(store, obj);
cat.save(store);
if (refresh) {
resetConnection(store);
}
return storeDetails(new JSONObj(), store,req);
}