public ApiResponse handleApiAction(String name, JSONObject params) throws ApiException {
if (ACTION_SET_REVEAL.equals(name)) {
extension.setReveal(getParam(params, PARAM_REVEAL, false));
} else {
throw new ApiException(ApiException.Type.BAD_ACTION);
}
return ApiResponseElement.OK;
}