As far as I know the contempt of court charges can keep you in jail till you rot. Unless the judge recinds his order or your lawyer can get a higher court to over-turn the order you are stuck (as far as I understand it).