public ApiPerson createSpouseInFamily(final String db, final String id,
            final ApiPerson person) {
        logger.info("Entering create spouse in db: " + db + " in family " + id);
        final ApiPerson newPerson = createPerson(db, person);
        try {
            final ApiFamily family = readFamily(db, id);
            addSpouseToFamily(family, newPerson);
            return crudUpdate(db, family, newPerson);
        } catch (ObjectNotFoundException e) {
            return newPerson;
        }
    }
public ApiPerson createSpouseInFamily ( final String db , final String id , final ApiPerson person ) { logger . info ( "Entering create spouse in db: " + db + " in family " + id ) ; final ApiPerson newPerson = createPerson ( db , person ) ; try { final ApiFamily family = readFamily ( db , id ) ; addSpouseToFamily ( family , newPerson ) ; return crudUpdate ( db , family , newPerson ) ; } catch ( ObjectNotFoundException e ) { return newPerson ; } }
@param db the name of the db to access
@param id the id of the family to which we are adding a spouse
@param person the data for the spouse
@return the person returned from the db