@Override
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
accessChecker.checkPermittedStoreRequest(req);
String requestString = requireParameter(req, "req");
ServerMutateRequest mutateRequest;
try {
mutateRequest = GsonProto.fromGson(new ServerMutateRequestGsonImpl(),
requestString);
} catch (MessageException e) {
throw new BadRequestException("Failed to parse request: " + requestString, e);
}
ObjectSession session = ObjectSessionHelper.objectSessionFromProto(mutateRequest.getSession());
ServerMutateResponse result =
storeSelector.get(session.getStoreType()).getLocalMutationProcessor()
.mutateObject(mutateRequest);
log.info("Success @" + result.getResultingVersion());