code: public static Response getVotingResponse(ParaObject object, Map<String, Object> entity) {
  		boolean voteSuccess = false;
  		if (object != null && entity != null) {
  			String upvoterId = (String) entity.get("_voteup");
  			String downvoterId = (String) entity.get("_votedown");
  			if (!StringUtils.isBlank(upvoterId)) {
  				voteSuccess = object.voteUp(upvoterId);
  			} else if (!StringUtils.isBlank(downvoterId)) {
  				voteSuccess = object.voteDown(downvoterId);
  	}
  			if (voteSuccess) {
  				object.update();
  			}
  		}
  		return Response.ok(voteSuccess).build();
  	}
docs: Process voting request and create vote object.
  @param object the object to cast vote on
  @param entity request entity data
  @return status codetrue if vote was successful