(1) This section applies to an infant who is in the custody of, and being brought up, maintained and educated by a person or two spouses jointly as his, her or their own child under a de facto adoption, and has for a period of not less than two years before been in the custody, and been brought up, maintained and educated.