public function getCurrentUser(){

//      //@TODO Rework the userid, use case, if user id is not provided or is null
        //Get the authenticated user
        //Also load some user data from the user database table, some basic info
        $this->authenticated = false;

        //Authenticate
        $authenticate = $this->session->get("handler", "auth");

        if (is_a($authenticate, Authenticate::class)) {

            if ($authenticate->authenticated) {

                $this->authenticated = true;

                //Does this actually do anything?
                $this->authority = $this->session->getAuthority();

                return $this->loadObjectByURI($authenticate->get("user_name_id"), [], true);

            }
        }

        //Gets an instance of the session user;
        return $this;
    }