if (null == userId) { Visit visit = (Visit) getVisit(); userId = visit.getUserId(); setUserId(userId);
Visit visit = (Visit) getVisit(); Integer loggedInUserId = visit.getUserId(); if (userId == null) {  userId = loggedInUserId; } else {     if (!userId.equals(loggedInUserId)) { if (!getLoginContext().isAdmin(loggedInUserId)) { userId = loggedInUserId; } }
    public void pageBeginRender(PageEvent event_) {        Integer userId = getUserId();        if (null == userId) {            Visit visit = (Visit) getVisit();            userId = visit.getUserId();            setUserId(userId);        }        CallSequence callSequence = getCallSequence();        if (null == callSequence) {            ForwardingContext forwardingContext = getForwardingContext();            callSequence = forwardingContext.getCallSequenceForUserId(userId);            setCallSequence(callSequence);        }        ListEditMap map = createListEditMap(callSequence);        setRingsMap(map);    }