If you want to challenge a federal judgment that imposed a sentence to be served in the future, you should file a motion under 28 U.S.C. § 2255 in the federal. The forms listed below are used in civil and criminal cases in the Superior Court.They are for lawyers and for people who do not have lawyers. "Habeas corpus" is a writ utilized to bring a person before a court, most frequently to ensure that a person' s imprisonment or detention is not illegal. The new writ of habeas corpus for a detainee in ICE's custody requires the Court to designate a county sheriff to transport the detainee to and. The writ of habeas corpus gives you the chance to challenge the consequences, restraints, and results of your case. Massachusetts has a Habeas Corpus law I would like to use to try to get a trial. The law is at this hyperlink: Section 3. Which isn't to say it has to actually be filed in the original court. To get a custody order, you need to file a complaint in the Probate and Family Court.