class LoginCheckMidware {

    public void handle(final RequestContext context) {<FILL_FUNCTION_BODY>}
}

        final JSONObject currentUser = Sessions.getUser();
        if (null == currentUser) {
            context.sendError(401);
            context.abort();
            return;
        }

        final int point = currentUser.optInt(UserExt.USER_POINT);
        final int appRole = currentUser.optInt(UserExt.USER_APP_ROLE);
        if (UserExt.USER_APP_ROLE_C_HACKER == appRole) {
            currentUser.put(UserExt.USER_T_POINT_HEX, Integer.toHexString(point));
        } else {
            currentUser.put(UserExt.USER_T_POINT_CC, UserExt.toCCString(point));
        }

        context.attr(User.USER, currentUser);
        context.handle();
    
<no_super_class>