public Person getSpouse ( final GedObject person ) { final List < Person > spouses = visitor . getSpouses ( ) ; if ( person != null && ! spouses . contains ( person ) ) { return new Person ( ) ; } for ( final Person spouse : spouses ) { if ( ! spouse . equals ( person ) ) { return spouse ; } } return new Person ( ) ; }
Get the person in this family who is the spouse of the person passed in .