class HandlerStop implements Handler {
    @Override
    public void handle(Context ctx) throws Throwable {
        ctx.output(handle0(ctx));
    }

    private String handle0(Context ctx) throws Throwable {<FILL_FUNCTION_BODY>}

    public void stateSet(boolean enabled) {
        Instance instance = Instance.local();

        if (Utils.isNotEmpty(instance.address())) {
            String meta = null;
            if (instance.meta() != null) {
                meta = ONode.stringify(instance.meta());
            }

            WaterClient.Registry.set(Solon.cfg().appGroup(), instance.service(), instance.address(), meta, enabled);
        }
    }

    private boolean authServerIp(String ip) {
        if (Solon.cfg().isDriftMode()) {
            //isDriftMode，拒绝停止
            return false;
        } else {
            return CloudClient.list().inListOfServerIp(ip);
        }
    }
}

        String ip = ctx.realIp();

        if (authServerIp(ip)) {
            stateSet(false);
            Solon.stop();
            return "OK";
        } else {
            return (ip + ", not is safelist!");
        }
    
<no_super_class>