Austin Lawyer Adam Reposa Sentenced to Six Months

One of great things about our country is that every person is guaranteed a right to a fair and just trial. Is this the direction that our current court system is going in? Is putting lawyers in jail for contempt of court the correct way to go about this?