The man who shot liberty valanc

In the movie “The man who shot liberty valance”, John Wayne plays the archetypical western hero, a man who is at once outside of the law who is also committed to upholding justice. Please discuss the contradictions inherent in his role in the film.