Aded getResult for Tree