def _set_hierarchy_view(self, session):
if self._hierarchy_view == FEDERATED:<EOL><INDENT>try:<EOL><INDENT>session.use_federated_hierarchy_view()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>session.use_isolated_hierarchy_view()<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Sets the underlying hierarchy view to match current view