formData.addAddAcesParameters(addAces);
formData.addRemoveAcesParameters(removeAces);
formData.addSuccinctFlag(getSuccinct());
// send and parse
Response resp = post(url, formData.getContentType(), new Output() {
public void write(OutputStream out) throws Exception {
formData.write(out);
}
});
Map<String, Object> json = parseObject(resp.getStream(), resp.getCharset());
TypeCache typeCache = new ClientTypeCacheImpl(repositoryId, this);
ObjectData newObj = JSONConverter.convertObject(json, typeCache);