@Override
public ApiResponse handleApiView(String name, JSONObject params) throws ApiException {
ApiResponse result = null;
if (VIEW_REVEAL.equals(name)) {
result = new ApiResponseElement(name, Boolean.toString(extension.isReveal()));
} else {
throw new ApiException(ApiException.Type.BAD_VIEW);
}
return result;
}