A candidate must be at least 25 years old, is expected to have received a higher legal education (commonly a specialist degree), have at least 5 years of experience in the legal profession, and pass an examination from the Ministry of Justice. A candidate for a position of a judge of garrison military court has to meet the same conditions as for a candidate for a position of a judge of district court. Initially, a candidate for a position of a judge of garrison military court had to have a military rank of commissioned officer, because judges of military courts were military personnel (although not subordinated to any military authority); however, since 30 June, 2009, when the amendments, contained in Federal Constitutional Law of 29 June, 2009, №3-FKZ, entered into force, judges of military courts are no longer military personnel and candidates are no longer necessary to have military rank of commissioned officer. Justices of the peace are usually appointed by the regional legislature, but may also be elected. Justices of the peace require most of the same qualifications. Prosecutors The Prosecutor General of Russia is the highest prosecutor in Russia, and both he and his office are independent from the executive, legislative and judicial branches of power. The Prosecutor General remains the most powerful component of the Russian judicial system. The Prosecutor General is entrusted with: prosecution in court on behalf of the State; representation of the interests of a citizen or of the State in court in cases determined by law; supervision of the observance of laws by bodies that conduct detective and search activity, inquiry and pre-trial investigation; supervision of the observance of laws in the execution of judicial decisions in criminal cases, and also in the application of other measures of coercion related to the restraint of personal liberty of citizens. The Prosecutor General is nominated by the President of Russia and appointed by the majority of Federation Council for a term of five years. If the nomination fails, the President must nominate another candidate within 30 days.<ref></ref> The resignation of the Prosecutor General before the end of his term should be approved by both a majority of Federation Council and the President. The Prosecutor General leads the General Prosecutor's Office of Russian Federation. The prosecutor's offices of subjects of Russian Federation are subordinate to the General Prosecutor's Office of Russian Federation, and the prosecutor's offices