@ Override public void visit ( final Wife wife ) { this . wifeFound = wife ; if ( wife . isSet ( ) ) { mother = wife . getMother ( ) ; spouses . add ( mother ) ; } }
Visit a Wife . We track this and if set the Person who is the mother .