class User {

    public Optional<AccessInterval> getLatestAccessInterval() {
        if(accessIntervals.size() > 0) {
            return Optional.of(accessIntervals.get(accessIntervals.size() - 1));
        }

        return Optional.empty();
    }

    public  User(String userId);
    protected  User();

}