'Load the current history.
- If that isn\'t available, we find the most recently updated history.
- If *that* isn\'t available, we get or create the default history.
Transactions will not always have an active history (API requests), so
None is a valid response.'

def get_history(self, create=False, most_recent=False):

    history = None
    if self.galaxy_session:
        if hasattr(self.galaxy_session, 'current_history'):
            history = self.galaxy_session.current_history
    if ((not history) and most_recent):
        history = self.get_most_recent_history()
    if ((not history) and util.string_as_bool(create)):
        history = self.get_or_create_default_history()
    return history
