class AbstractAdminCommandHandler implements AdminCommandHandler {

    @Override
    public Response handle(Request request) {<FILL_FUNCTION_BODY>}

    /**
     * Process admin command.
     * If the processing fails, an exception can be thrown safely and the upper layer will handle it uniformly.
     *
     * @param command     admin command
     * @param params      request params, i.e. http parameters or rpc arguments
     * @param attachments http headers or rpc attachments
     * @param result      json result. it will be the response value
     */
    protected abstract void process(String command, Map<String, String> params, Map<String, String> attachments, JSONObject result);
}

        JSONObject result = new JSONObject();
        result.put("result", "ok"); // default result.
        process(request.getMethodName(), AdminUtil.getParams(request), request.getAttachments(), result);
        return AdminUtil.buildResponse(request, result.toJSONString());
    
<no_super_class>