@classmethod
def _get_snapshots_by_name(cls, snapshots, name):
    """
        Filter the snapshots by name
        :param snapshots: The list of the snapshots
        :param name: The name

        :return: The list of snapshots filtered
        """
    found_snapshots = []
    for snapshot in snapshots:
        if name == snapshot.name:
            found_snapshots.append(snapshot)
        found_snapshots = found_snapshots + cls._get_snapshots_by_name(snapshot
            .childSnapshotList, name)
    return found_snapshots
