No, it wouldn't have been. You might judge based on skin color, but the court did not. Hagamannen is a very much native, white Swede and his punishment was highly slandered by the people wanting the Justice systems of far shittier countries without the drawbacks to social security, human rights and freedom (and ironically, higher crime rates!) that comes with.