class MethodHandler implements Handler {
    private final BeanWrap bw;
    private final MethodWrap mw;
    private final boolean allowResult;

    /**
     * @param beanWrap    Bean包装器
     * @param method      函数（外部要控制访问权限）
     * @param allowResult 允许传递结果
     */
    public MethodHandler(BeanWrap beanWrap, Method method, boolean allowResult) {
        this.bw = beanWrap;
        this.mw = beanWrap.context().methodGet(method);
        this.allowResult = allowResult;
    }


    /**
     * 处理
     */
    @Override
    public void handle(Context c) throws Throwable {<FILL_FUNCTION_BODY>}
}

        Object tmp = Solon.app().chainManager().getExecuteHandlerDefault()
                .executeHandle(c, bw.get(true), mw);

        if (allowResult) {
            c.result = tmp;
        }
    
<no_super_class>