Automatically loading relationship tree