Yes, the hearing is for the residency, and i was referred back in June 2016, no idea how many of us are in that situation, that's why i created a new topic : http://www.canadavisa.com/canada-immigration-discussion-board/citizenship-judge-hearing-waiting-time-t460072.0.html ,