def get_account_from_name(self, name):
        """
        Returns the account with the given name.

        :type  name: string