public ApiPerson linkChildInFamily(final String db, final String id,
            final ApiPerson person) {
        logger.info(
                "Entering link person: " + person.getString()
                + " in db: " + db
                + " as a child of family: " + id);
        final ApiPerson foundPerson = readPerson(db, person.getString());
        try {
            final ApiFamily family = readFamily(db, id);
            addChildToFamily(family, foundPerson);
            return crudUpdate(db, family, foundPerson);
        } catch (ObjectNotFoundException e) {
            return foundPerson;
        }
    }
public ApiPerson linkChildInFamily ( final String db , final String id , final ApiPerson person ) { logger . info ( "Entering link person: " + person . getString ( ) + " in db: " + db + " as a child of family: " + id ) ; final ApiPerson foundPerson = readPerson ( db , person . getString ( ) ) ; try { final ApiFamily family = readFamily ( db , id ) ; addChildToFamily ( family , foundPerson ) ; return crudUpdate ( db , family , foundPerson ) ; } catch ( ObjectNotFoundException e ) { return foundPerson ; } }
@param db the name of the db to access
@param id the id of the family whose child we are linking
@param person the data for the child (only need the string field)
@return the person linking to the new person