However, Judge Leis wrote in the Wednesday ruling that no one told him “to conceive a child with his wife’s best friend,” and cited a New York Supreme Court ruling last summer that allowed nonbiological or adoptive parents to seek custody if they had a previous relationship with a child.