Added getByKey() with ancestors