15. Amendment to section 246 of Principal Act.
Section 246 (as amended by the Social Welfare and Pensions Act 2008) of the Principal Act is amended by inserting the following subsections after subsection (4):
"(5) Notwithstanding subsections (1) to (4) and subject to subsection (9), a person who does not have a right to reside in the State shall not, for the purposes of this Act, be regarded as being habitually resident in the State.
(6) The following persons shall, for the purpose of subsection (5), be taken to have a right to reside in the State:
(a) an Irish citizen under the Irish Nationality and Citizenship Acts 1956 to 2004;
(b) a person who has a right to enter and reside in the State under the European Communities (Free Movement of Persons) (No. 2) Regulations 2006 ( S.I. No. 656 of 2006), the European Communities (Aliens) Regulations 1977 ( S.I. No. 393 of 1977) or the European Communities (Right of Residence for Non-Economically Active Persons) Regulations 1997 ( S.I. No. 57 of 1997);
(c) a person in respect of whom a declaration within the meaning of section 17 of the Act of 1996 is in force;
(d) a member of the family of a refugee, or a dependent member of the family of a refugee, in respect of whom permission has been granted to enter and reside in the State under, and in accordance with, section 18(3) (a) or, as the case may be, section 18(4)(a) of the Act of 1996;
(e) a programme refugee within the meaning of section 24 of the Act of 1996;