class LoginedValidator implements Validator<Logined> {
    public static final LoginedValidator instance = new LoginedValidator();

    private  LoginedChecker checker = new LoginedCheckerImp();

    public  void setChecker(LoginedChecker checker) {
        if (checker != null) {
            this.checker = checker;
        }
    }

    public static String sessionUserKeyName = "user_id";

    @Override
    public String message(Logined anno) {
        return anno.message();
    }

    @Override
    public Class<?>[] groups(Logined anno) {
        return anno.groups();
    }

    @Override
    public Result validateOfContext(Context ctx, Logined anno, String name, StringBuilder tmp) {<FILL_FUNCTION_BODY>}
}

        String userKeyName = anno.value();
        if(Utils.isEmpty(userKeyName)){
            userKeyName = LoginedValidator.sessionUserKeyName;
        }

        if(checker.check(anno, ctx, userKeyName)){
            return Result.succeed();
        }else{
            return Result.failure();
        }
    
<no_super_class>