The ECJ decided on 12 October 2010 (C-45/09, Gisela Rosenbladt v Oellerking Gebäudereinigungsges. mbH) on a reference for a preliminary ruling by Hamburg Labor Court that automatic termination of an employment contract on reaching retirement age is not necessarily discriminatory in the sense of Directive 2000/78/EC. The Court considers that such a measure does not establish a regime of compulsory retirement but allows employers and employees to agree, by individual or collective agreements, on a means, other than resignation or dismissal, of ending employment relationships on the basis of the age of eligibility for a retirement pension. As regards the aim of the German legislation at issue (Allgemeines Gleichbehandlungsgesetz), the Court observes that the mechanism is based on the balance to be struck between political, economic, social, demographic and/or budgetary considerations and the choice to be made between prolonging people's working lives or, conversely, providing for their early retirement.