As a counselor, I'm working with a client with very fertile grounds for anger management. Anger is the "get even" emotion based in the interpretation that you have been wronged, whether in a basic biological sense (as with animals who have had their spaces trespassed), or more in terms of consciousness, where one's rules have been violated. Typically anger is the "hard emotion" that covers the "soft emotion" of hurt. That is, anger is a response to the interpretation that not only have one's rules been broken, but that another person's actions have signified to them that they are of little or no value to the other.
Justice is thus the basis of anger, the extension of a will-to-survival. In the primitive world we have used anger first to prevent danger through going the extra step and neutralizing any threats, even unto death. Justice is the finer tuned expression of this will-to-neutralization. If I want to throw down revenge, this assumes there is something worth seeking revenge for -- some wrong that has been instilled, which in being corrected is the act of justice. This is based in a very basic biological drive (the drive for physical security, for holding down one's own physical space, which when broken signifies an attack), which has become "spiritualized" (in a secular sense) through consciousness, which allows for a future, and with it the possibility of setting up implicit or explicit rules we project onto others and use to evaluate these others.
The problem is that if anger is based in an essentially biological will-to-survive, yet we're still using this primitive emotion for even very trivial rules, and we've forgotten that the rules (trivial or not, so long as they're not conducive toward protecting our physical life) we have for others or the world can easily result in a state of anger (or its smaller expressions, such as frustration or irritation) that's far too much trouble for the thing we're trying to prevent. It's not worth it to get ticked at people while waiting in traffic, or even to get mildly frustrated at what appears to be a non-cooperative spouse. After all, the anger emotion is entirely superfluous because we're often capable of acting in ways that get us what we want that we have used our rules to aid us in getting, and even change our rules when they don't suit us. If we want respect from everyone and don't get it, we have the choice between riling in rage toward everyone who slights us vaguely, or changing how firmly we hold our rules.
Yet justice isn't simply another rule, even if it's the basis in some way of our initial anger response. Justice is the stuff that keeps you from getting too much more than me, and I can use society to aid me in this endeavor. Without justice, we risk getting the short end of the stick; with justice we can pay attention to our emotions of frustration, anger, or indignation and try and seek out whichever way we can to better our objective lot.