Whenever a contempt is charged under section 582 of this title, and the criminal offense referred to in subsection (a) of such section is one in the trial of which the accused would be entitled by existing law to a trial by jury, and such contempt is prosecuted in the District Court of the Virgin Islands, the accused, upon demand therefor, shall be entitled to trial by jury, which shall conform as near as may be with the practice in other criminal cases.