<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE C_Doc_Ref SYSTEM "CNC.dtd">
<C_Doc_Ref C_Langue="en" C_Version_doc="4.0" C_Debut_ID="EN62015-0544">
   <Properties>
      <Property name="Juridiction">C</Property>
      <Property name="NumeroOrdre">0544</Property>
      <Property name="Annee">2015</Property>
      <Property name="Formation">GC</Property>
      <Property name="Langue">EN</Property>
      <Property name="TypeDoc">CNC</Property>
      <Property name="NatureAff">RP</Property>
      <Property name="CreatedFrom">Litige</Property>
      <Property name="EP_Mode">0</Property>
      <Property name="EP_ModeText">DEF</Property>
      <Property name="EP_Titre1"/>
      <Property name="EP_Titre2">PROVISIONAL TEXT OF 20/10/2016</Property>
      <Property name="EP_Titre3">PROVISIONAL TEXT OF 20/10/2016</Property>
      <Property name="EP_Mention">0</Property>
      <Property name="EP_Mention_Texte">Text for publication</Property>
      <Property name="EP_IsMention_Texte">0</Property>
      <Property name="Version"/>
      <Property name="EP_Version">0</Property>
      <Property name="EP_FormJug_Footer"/>
      <Property name="EP_FormJug_ID">-</Property>
      <Property name="EP_FormJug_Texte"/>
      <Property name="NEW">0</Property>
      <Property name="FileDoc">Document40</Property>
      <Property name="TypeOrd"/>
      <Property name="TOC_Position_NotVademecum">0</Property>
      <Property name="NumProc">1</Property>
      <Property name="TypeProc">P</Property>
      <Property name="NumSuite">1</Property>
      <Property name="LitFilePath">C:\Users\rkla\AppData\Local\Temp\canevas\Litige.xml</Property>
      <Property name="Created">Canevas 3.8.8 K 15/09/2016 10:22:45</Property>
      <Property name="FootNotes">False</Property>
      <Property name="EP_Titre0"/>
      <Property name="EP_DocDeTravail">0</Property>
      <Property name="SectionType1">CNC</Property>
      <Property name="SectionData1">§128;pos=43111:lng=EN</Property>
      <Property name="Filename">0000-00-000000000-00-TRA-DOC-EN-CONCL-C-0544-15-000000000-06U70</Property>
      <Property name="QuotationMark_Open">(</Property>
      <Property name="QuotationMark_Close">)</Property>
      <Property name="serveur_nom">Doc2XML_2003 RECNUM_PUB</Property>
      <Property name="serveur_config_path">C:\Documents and Settings\gti_prod\Application Data\Doc2XML\PR_Doc2XML_2003_RecNum_Pub.xml</Property>
      <Property name="watch">R:\flux_Publication\Recueil_numerique\conversion\in\</Property>
   </Properties>
   <C_Header_Gauche>
      <blockquote id="A010000000">
         <para style="header" id="A150000000">OPINION OF MR SZPUNAR – CASE C‑544/15</para>
      </blockquote>
   </C_Header_Gauche>
   <C_Header_Droit>
      <blockquote id="A010000001">
         <para style="header" id="A150000001">FAHIMIAN</para>
      </blockquote>
   </C_Header_Droit>
   <C_Footer_Gauche>
      <blockquote id="A010000002">
         <para style="footer" id="A150000002">I - 20<emphasis role="tab" id="A400000000"/>
         </para>
      </blockquote>
   </C_Footer_Gauche>
   <C_Footer_Droit>
      <blockquote id="A010000003">
         <para style="footer" id="A150000003">
            <emphasis role="tab" id="A400000001"/>
            <emphasis role="tab" id="A400000002"/>I - 21</para>
      </blockquote>
   </C_Footer_Droit>
   <Affaire>
      <Introduction>
         <section id="A000000000">
            <para style="36Centre" id="A150000004">OPINION OF ADVOCATE GENERAL</para>
            <para style="36Centre" id="A150000005">
               <emphasis role="small" id="A400000003">SZPUNAR</emphasis>
            </para>
            <para style="36Centre" id="A150000006">delivered on 29 November 2016 <footnote role="fNote" id="A110000000">
                  <number>1</number>
                  <para style="40FootnoteLangue" id="A150000007"> –	Original language: English.</para>
               </footnote>
            </para>
            <para style="38Centregrasgrandespacement" id="A150000008">
               <emphasis role="bold" id="A400000004">Case C‑544/15</emphasis>
            </para>
            <para style="37Centregras" id="A150000009">
               <emphasis role="bold" id="A400000005">Sahar Fahimian</emphasis>
            </para>
            <para style="37Centregras" id="A150000010">
               <emphasis role="bold" id="A400000006">v</emphasis>
            </para>
            <para style="37Centregras" id="A150000011">
               <emphasis role="bold" id="A400000007">Federal Republic of Germany</emphasis>
            </para>
            <para style="39Centreespacement" id="A150000012">(Request for a preliminary ruling from the Verwaltungsgericht Berlin (Administrative Court, Berlin, Germany))</para>
            <para style="71Indicateur" id="A150000013">
               <phrase role="QuotationMark_Open" id="A410000000">(</phrase>
               <phrase role="motcle" id="A410000001">Area of freedom, security and justice </phrase>
               <phrase role="Separator" id="A410000002">–</phrase>
               <phrase role="motcle" id="A410000003"> Directive 2004/114/EC </phrase>
               <phrase role="Separator" id="A410000004">–</phrase>
               <phrase role="motcle" id="A410000005"> Article 6(1)(d) </phrase>
               <phrase role="Separator" id="A410000006">–</phrase>
               <phrase role="motcle" id="A410000007"> Conditions of admission of third-country nationals for the purposes of studies </phrase>
               <phrase role="Separator" id="A410000008">–</phrase>
               <phrase role="motcle" id="A410000009"> Refusal to admit a person </phrase>
               <phrase role="Separator" id="A410000010">–</phrase>
               <phrase role="motcle" id="A410000011"> Concept of ‘threat to public security’ </phrase>
               <phrase role="Separator" id="A410000012">–</phrase>
               <phrase role="motcle" id="A410000013"> Member State discretion </phrase>
               <phrase role="Separator" id="A410000014">–</phrase>
               <phrase role="motcle" id="A410000015"> Judicial review</phrase>
               <phrase role="QuotationMark_Close" id="A410000016">)</phrase>
            </para>
         </section>
      </Introduction>
      <C_Conclusions role="page break">
         <C_Conc_Txt>
            <section id="B000000000">
               <blockquote id="B010000000">
                  <title id="B210000000">
                     <number>1.</number>
                  </title>
                  <para style="01PointAltN" id="B150000000">Ms Fahimian is an Iranian student who wishes to obtain a visa in Germany in order to study for a doctorate. The German authorities refuse to grant such a visa on the basis that she studied at a university which is listed by the Council of the European Union as an entity close to the Iranian Government and as carrying out research for military purposes. They regard her as a threat to public security.</para>
               </blockquote>
               <blockquote id="B010000001">
                  <title id="B210000001">
                     <number>2.</number>
                  </title>
                  <para style="01PointAltN" id="B150000001">While there is a robust body of case-law on the public security exception in the domain of the internal market freedoms and EU citizenship, the same cannot be said of public security conditions in the area of EU immigration policy. </para>
               </blockquote>
               <blockquote id="B010000002">
                  <title id="B210000002">
                     <number>3.</number>
                  </title>
                  <para style="01PointAltN" id="B150000002">The questions raised by this case, which is the second one on the interpretation of a provision of Council Directive 2004/114/EC, <footnote role="fNote" id="B110000000">
                        <number>2</number>
                        <para style="footnotetext" id="B150000003"> –	Directive of 13 December 2004 on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service (OJ 2004 L 375, p. 12).</para>
                     </footnote> go to the heart of EU immigration policy. It will be for the Court to determine the margin of discretion available to the authorities of a Member State in this context, as well as the degree of judicial review. In doing so, the Court should take into account the different objectives of the internal market and immigration policy.</para>
               </blockquote>
               <section id="B000000001">
                  <title style="03Titre1" id="B200000000">
                     <number>I – </number>
                     <titlecontent id="B300000000">
                        <emphasis role="bold" id="B400000000">Legal framework</emphasis>
                     </titlecontent>
                  </title>
                  <section id="B000000002">
                     <title style="04Titre2" id="B200000001">
                        <number>A –</number>
                        <titlecontent id="B300000001">
                           <emphasis role="italc" id="B400000001">EU law</emphasis>
                        </titlecontent>
                     </title>
                     <section id="B000000003">
                        <title style="05Titre3" id="B200000002">
                           <number>1.</number>
                           <titlecontent id="B300000002">Directive 2004/114</titlecontent>
                        </title>
                        <blockquote id="B010000003">
                           <title id="B210000003">
                              <number>4.</number>
                           </title>
                           <para style="01PointAltN" id="B150000004">Article 1 of Directive 2004/114 (‘the Directive’), headed ‘Subject matter’, reads as follows:</para>
                        </blockquote>
                        <blockquote id="B010000004">
                           <para style="01PointAltN" id="B150000005">‘The purpose of this Directive is to determine:</para>
                           <blockquote id="B010000005">
                              <para style="15Margeretrait0" id="B150000006">(a)<emphasis role="tab" id="B400000002"/>the conditions for admission of third-country nationals to the territory of the Member States for a period exceeding three months for the purposes of studies, pupil exchange, unremunerated training or voluntary service;</para>
                           </blockquote>
                           <blockquote id="B010000006">
                              <para style="15Margeretrait0" id="B150000007">(b)<emphasis role="tab" id="B400000003"/>the rules concerning the procedures for admitting third-country nationals to the territory of the Member States for those purposes.’</para>
                           </blockquote>
                        </blockquote>
                        <blockquote id="B010000007">
                           <title id="B210000004">
                              <number>5.</number>
                           </title>
                           <para style="01PointAltN" id="B150000008">Pursuant to its Article 3(1) (‘Scope’), the Directive is to apply to ‘third-country nationals who apply to be admitted to the territory of a Member State for the purpose of studies’.</para>
                        </blockquote>
                        <blockquote id="B010000008">
                           <title id="B210000005">
                              <number>6.</number>
                           </title>
                           <para style="01PointAltN" id="B150000009">Chapter II of Directive 2004/114 consists of Articles 5 to 11 and deals with ‘Conditions of admission’.</para>
                        </blockquote>
                        <blockquote id="B010000009">
                           <title id="B210000006">
                              <number>7.</number>
                           </title>
                           <para style="01PointAltN" id="B150000010">The ‘Principle’, as contained in Article 5, is that ‘the admission of a third-country national under this Directive shall be subject to the verification of documentary evidence showing that he/she meets the conditions laid down in Article 6 and in whichever of Articles 7 to 11 applies to the relevant category’.</para>
                        </blockquote>
                        <blockquote id="B010000010">
                           <title id="B210000007">
                              <number>8.</number>
                           </title>
                           <para style="01PointAltN" id="B150000011">Article 6 of Directive 2004/114, headed ‘General conditions’ reads as follows:</para>
                        </blockquote>
                        <blockquote id="B010000011">
                           <para style="01PointAltN" id="B150000012">‘1.<emphasis role="tab" id="B400000004"/>A third-country national who applies to be admitted for the purposes set out in Articles 7 to 11 shall:</para>
                           <blockquote id="B010000012">
                              <para style="15Margeretrait0" id="B150000013">(a)<emphasis role="tab" id="B400000005"/>present a valid travel document as determined by national legislation. Member States may require the period of validity of the travel document to cover at least the duration of the planned stay;</para>
                           </blockquote>
                           <blockquote id="B010000013">
                              <para style="15Margeretrait0" id="B150000014">(b)<emphasis role="tab" id="B400000006"/>if he/she is a minor under the national legislation of the host Member State, present a parental authorisation for the planned stay;</para>
                           </blockquote>
                           <blockquote id="B010000014">
                              <para style="15Margeretrait0" id="B150000015">(c)<emphasis role="tab" id="B400000007"/>have sickness insurance in respect of all risks normally covered for its own nationals in the Member State concerned;</para>
                           </blockquote>
                           <blockquote id="B010000015">
                              <para style="15Margeretrait0" id="B150000016">(d)<emphasis role="tab" id="B400000008"/>not be regarded as a threat to public policy, public security or public health;</para>
                           </blockquote>
                           <blockquote id="B010000016">
                              <para style="15Margeretrait0" id="B150000017">(e)<emphasis role="tab" id="B400000009"/>provide proof, if the Member State so requests, that he/she has paid the fee for processing the application on the basis of Article 20.</para>
                           </blockquote>
                        </blockquote>
                        <blockquote id="B010000017">
                           <para style="01PointAltN" id="B150000018">2.<emphasis role="tab" id="B400000010"/>Member States shall facilitate the admission procedure for the third-country nationals covered by Articles 7 to 11 who participate in Community programmes enhancing mobility towards or within the Community.’</para>
                        </blockquote>
                        <blockquote id="B010000018">
                           <title id="B210000008">
                              <number>9.</number>
                           </title>
                           <para style="01PointAltN" id="B150000019">Article 18 on ‘Procedural guarantees and transparency’, located in Chapter V of Directive 2004/114 (‘Procedure and Transparency’) states in its fourth paragraph that ‘where an application is rejected or a residence permit issued in accordance with this Directive is withdrawn, the person concerned shall have the right to mount a legal challenge before the authorities of the Member State concerned’.</para>
                        </blockquote>
                     </section>
                     <section id="B000000004">
                        <title style="05Titre3" id="B200000003">
                           <number>2.</number>
                           <titlecontent id="B300000003">Regulation (EU) No 267/2012 and Implementing Regulation (EU) No 1202/2014</titlecontent>
                        </title>
                        <blockquote id="B010000019">
                           <title id="B210000009">
                              <number>10.</number>
                           </title>
                           <para style="01PointAltN" id="B150000020">According to Article 23(2)(d) of Regulation (EU) No 267/2012, <footnote role="fNote" id="B110000001">
                                 <number>3</number>
                                 <para style="footnotetext" id="B150000021"> –<emphasis role="tab" id="B400000011"/>Council Regulation of 23 March 2012 concerning restrictive measures against Iran and repealing Regulation (EU) No 961/2010 (OJ 2012 L 88, p. 1), as amended by Council Regulation (EU) 2015/1328 of 31 July 2015 (OJ 2015 L 206, p. 20).</para>
                              </footnote> ‘all funds and economic resources belonging to, owned, held or controlled by the persons, entities and bodies listed in Annex IX shall be frozen. Annex IX shall include the natural and legal persons, entities and bodies who, in accordance with Article 20(1)(b) and (c) of Council Decision 2010/413/CFSP, have been identified as … being other persons, entities or bodies that provide support, such as material, logistical or financial support, to the Government of Iran and entities owned or controlled by them, or persons and entities associated with them’.</para>
                        </blockquote>
                        <blockquote id="B010000020">
                           <title id="B210000010">
                              <number>11.</number>
                           </title>
                           <para style="01PointAltN" id="B150000022">Council Implementing Regulation (EU) No 1202/2014 <footnote role="fNote" id="B110000002">
                                 <number>4</number>
                                 <para style="footnotetext" id="B150000023"> –<emphasis role="tab" id="B400000012"/>Implementing Regulation of 7 November 2014 implementing Regulation No 267/2012 (OJ 2012 L 325, p. 3).</para>
                              </footnote> lists in its Annex under I.I. persons and entities ‘involved in nuclear or ballistic missile activities and persons and entities providing support to the Government of Iran’. <footnote role="fNote" id="B110000003">
                                 <number>5</number>
                                 <para style="footnotetext" id="B150000024"> –	Technically, the persons and entities listed in that Annex are to be inserted in the list set out in Part I of Annex IX to Regulation No 267/2012.</para>
                              </footnote> In point 161 of the Annex it is stipulated as follows:</para>
                        </blockquote>
                        <blockquote id="B010000021">
                           <para style="01PointAltN" id="B150000025">‘Sharif University of Technology (SUT) has a number of cooperation agreements with Iranian Government organisations which are designated by the UN and/or the EU and which operate in military or military-related fields, particularly in the field of ballistic missile production and procurement. This includes: an agreement with the EU-designated Aerospace Industries Organisation for inter alia the production of satellites; cooperating with the Iranian Ministry of Defence and the Iranian Revolutionary Guards Corps (IRGC) on smart boat competitions; a broader agreement with the IRGC Air Force which covers developing and strengthening the University’s relations, organisational and strategic cooperation;</para>
                        </blockquote>
                        <blockquote id="B010000022">
                           <para style="01PointAltN" id="B150000026">SUT is part of a 6-university agreement which supports the Government of Iran through defence-related research; and SUT teaches graduate courses in unmanned aerial vehicle (UAV) engineering which were designed by the Ministry of Science among others. Taken together, these show a significant record of engagement with the Government of Iran in military or military-related fields that constitutes support to the Government of Iran.’</para>
                        </blockquote>
                     </section>
                  </section>
                  <section id="B000000005">
                     <title style="04Titre2" id="B200000004">
                        <number>B –</number>
                        <titlecontent id="B300000004">
                           <emphasis role="italc" id="B400000013">German law</emphasis>
                        </titlecontent>
                     </title>
                     <blockquote id="B010000023">
                        <title id="B210000011">
                           <number>12.</number>
                        </title>
                        <para style="01PointAltN" id="B150000027">The Gesetz über den Aufenthalt, die Erwerbstätigkeit und die Integration von Ausländern im Bundesgebiet (Law on the Residence, Economic Activity and Integration of Foreigners in the Federal Territory), <footnote role="fNote" id="B110000004">
                              <number>6</number>
                              <para style="footnotetext" id="B150000028"> –	An English version of that law is available at https://www.gesetze-im-internet.de/englisch_aufenthg/englisch_aufenthg.html#p0046.</para>
                           </footnote> in the version notified on 25 February 2008 (BGBl. 2008 I, p. 162), as most recently amended by Article 1 of the Law of 27 July 2015 (BGBl. 2015 I, p. 1386) deals, inter alia, with a right of entry of third-country nationals into Germany.</para>
                     </blockquote>
                     <blockquote id="B010000024">
                        <title id="B210000012">
                           <number>13.</number>
                        </title>
                        <para style="01PointAltN" id="B150000029">Pursuant to Article 4(1) of that law:</para>
                     </blockquote>
                     <blockquote id="B010000025">
                        <para style="01PointAltN" id="B150000030">‘In order to enter and stay in the federal territory, foreigners shall require a residence permit, in the absence of any provisions to the contrary in the law of the European Union or a statutory instrument and except where a right of residence exists as a result of the agreement of 12 September 1963 establishing an association between the European Economic Community and Turkey (Federal Law Gazette 1964 II, p. 509) (EEC/Turkey Association Agreement). The residence permits shall be granted in the form of</para>
                     </blockquote>
                     <blockquote id="B010000026">
                        <para style="01PointAltN" id="B150000031">1.	a visa pursuant to Section 6(1), No. 1 and (3),</para>
                     </blockquote>
                     <blockquote id="B010000027">
                        <para style="01PointAltN" id="B150000032">…’</para>
                     </blockquote>
                     <blockquote id="B010000028">
                        <title id="B210000013">
                           <number>14.</number>
                        </title>
                        <para style="01PointAltN" id="B150000033">Article 6(3) of the same law stipulates:</para>
                     </blockquote>
                     <blockquote id="B010000029">
                        <para style="01PointAltN" id="B150000034">‘A visa for the federal territory (national visa) shall be required for stays of longer duration; this visa shall be issued before the foreigner enters the federal territory. Issuance shall be based on the regulations applying to the residence permit, the EU Blue Card, the settlement permit and the EU long-term residence permit. The duration of lawful stay with a national visa shall be offset against the periods of possession of a residence permit, EU Blue Card, settlement permit or EU long-term residence permit.’</para>
                     </blockquote>
                     <blockquote id="B010000030">
                        <title id="B210000014">
                           <number>15.</number>
                        </title>
                        <para style="01PointAltN" id="B150000035">Article 16(1) of the said law reads as follows:</para>
                     </blockquote>
                     <blockquote id="B010000031">
                        <para style="01PointAltN" id="B150000036">‘A foreigner may be granted a residence permit for the purpose of studying at a State or State-recognised university or a comparable educational establishment. … The residence permit for study purposes may only be issued where the foreigner has been admitted by the educational establishment concerned; conditional admission is sufficient. Proof of a knowledge of the language in which the course of studies is to be conducted shall not be required where the foreigner’s knowledge of the language has already been taken into account in the decision on admission or is to be acquired by means of preparatory measures for the course of study. The period of validity when the residence permit for study purposes is issued for the first time and for each subsequent extension shall be at least one year and should not exceed two years during courses of study and preparatory measures for courses of study; it may be extended where the purpose of residence has not yet been achieved and is achievable within a reasonable period of time.’</para>
                     </blockquote>
                  </section>
               </section>
               <section id="B000000006">
                  <title style="03Titre1" id="B200000005">
                     <number>II – </number>
                     <titlecontent id="B300000005">
                        <emphasis role="bold" id="B400000014">Facts, procedure and questions referred</emphasis>
                     </titlecontent>
                  </title>
                  <blockquote id="B010000032">
                     <title id="B210000015">
                        <number>16.</number>
                     </title>
                     <para style="01PointAltN" id="B150000037">Ms Fahimian, an Iranian national born in 1985, holds a Master of Science degree in the field of information technology from the Sharif University of Technology (SUT) in Tehran. This university specialises in technology, engineering and physics.</para>
                  </blockquote>
                  <blockquote id="B010000033">
                     <title id="B210000016">
                        <number>17.</number>
                     </title>
                     <para style="01PointAltN" id="B150000038">On 21 November 2012, she applied to the German Embassy in Tehran for a visa to study for a doctorate at the Technical University Darmstadt, Center for Advanced Security Research Darmstadt (CASED), within the framework of the ‘Trusted embedded and mobile systems project’. The application was accompanied by a certificate of admission from the university and also by a letter from the managing director of CASED of 14 November 2012. According to that letter, Ms Fahimian ‘will do her research in the research area secure things, esp. in the project “Trustworthy Embedded and Mobile Systems” … Her research questions range from security of mobile systems, esp. intrusion detection on SmartPhones to security protocols. Her task will be to find new efficient and effective protections (sic) mechanisms for SmartPhones under the well-known restrictions of restricted power, restricted computing resources, and restricted bandwidth.’ </para>
                  </blockquote>
                  <blockquote id="B010000034">
                     <title id="B210000017">
                        <number>18.</number>
                     </title>
                     <para style="01PointAltN" id="B150000039">Furthermore, CASED offered a doctoral grant for Ms Fahimian amounting to EUR 1 468 per month.</para>
                  </blockquote>
                  <blockquote id="B010000035">
                     <title id="B210000018">
                        <number>19.</number>
                     </title>
                     <para style="01PointAltN" id="B150000040">By order of 27 May 2013, the German embassy rejected Ms Fahimian’s visa application. Her informal appeal (‘Remonstrationsverfahren’) against this order was without success.</para>
                  </blockquote>
                  <blockquote id="B010000036">
                     <title id="B210000019">
                        <number>20.</number>
                     </title>
                     <para style="01PointAltN" id="B150000041">On 22 November 2013, Ms Fahimian brought an action against the German Government before the referring court in which she pursues further her request to be issued with a visa for the purpose of studies. She relies on Article 6(1) of Directive 2004/114 for her right of entry. The German Government, for its part, takes the view that she represents a threat to public security within the meaning of Article 6(1)(d) of Directive 2004/114.</para>
                  </blockquote>
                  <blockquote id="B010000037">
                     <title id="B210000020">
                        <number>21.</number>
                     </title>
                     <para style="01PointAltN" id="B150000042">It is in the context of these proceedings that, by order of 14 October 2015, received at the Court on 19 October 2015, the Verwaltungsgericht Berlin (Administrative Court, Berlin, Germany) referred the following questions for a preliminary ruling:</para>
                     <blockquote id="B010000038">
                        <para style="33Marge0doubleretrait" id="B150000043">‘(1)(a)<emphasis role="tab" id="B400000015"/>
                           <emphasis role="tab" id="B400000016"/>Is Article 6(1)(d) of [Directive 2004/114] to be interpreted as meaning that the competent authorities of the Member States are able to exercise a degree of discretion in examining whether a third-country national who applies to be admitted for the purposes set out in Articles 7 to 11 of that directive is regarded as a threat to public policy, public security or public health, as a result of which discretion the assessment by the authorities may be subject to only limited judicial review?</para>
                     </blockquote>
                     <blockquote id="B010000039">
                        <para style="33Marge0doubleretrait" id="B150000044">(1)(b)<emphasis role="tab" id="B400000017"/>
                           <emphasis role="tab" id="B400000018"/>If Question (1)(a) is answered in the affirmative: What are the legal limits placed on the competent authorities of the Member States when making the assessment that a third-country national who applies to be admitted for the purposes set out in Articles 7 to 11 of [Directive 2004/114] is to be regarded as a threat to public policy, public security or public health, particularly in view of the facts underlying that assessment and their evaluation?</para>
                     </blockquote>
                     <blockquote id="B010000040">
                        <para style="15Margeretrait0" id="B150000045">(2)<emphasis role="tab" id="B400000019"/>Independently of the answers to Questions (1)(a) and (1)(b): Is Article 6(1)(d) of [Directive 2004/114] to be interpreted as meaning that the Member States are thereby empowered, in a case such as the present, in which a third-country national from Iran, who obtained her university degree from the Sharif University of Technology (Tehran) in Iran, which specialises in technology, engineering and physics, seeks entry for the purpose of taking up doctoral studies in the area of IT-security research within the framework of the “Trusted Embedded and Mobile Systems” project, in particular the development of effective security mechanisms for smartphones, to deny entry to their territory, stating as grounds for this refusal that it could not be ruled out that the skills acquired in connection with the research project might be misused in Iran, for instance for the acquisition of sensitive information in Western countries for the purpose of internal repression or more generally in connection with human rights violations?’</para>
                     </blockquote>
                  </blockquote>
                  <blockquote id="B010000041">
                     <title id="B210000021">
                        <number>22.</number>
                     </title>
                     <para style="01PointAltN" id="B150000046">Ms Fahimian and the Governments of Germany, Belgium, Greece, France, Italy and Poland submitted written observations, as did the European Commission. Ms Fahimian and the Governments of Germany, Greece and France as well as the European Commission also presented oral argument at the hearing on 20 September 2016.</para>
                  </blockquote>
               </section>
               <section id="B000000007">
                  <title style="03Titre1" id="B200000006">
                     <number>III – </number>
                     <titlecontent id="B300000006">
                        <emphasis role="bold" id="B400000020">Analysis</emphasis>
                     </titlecontent>
                  </title>
                  <blockquote id="B010000042">
                     <title id="B210000022">
                        <number>23.</number>
                     </title>
                     <para style="01PointAltN" id="B150000047">I propose to reformulate the three questions of the referring court, against the background that, in the context of the procedure established by Article 267 TFEU, it is for Court to provide the national court with an answer which will be of use to it and enable it to determine the case before it and that to that end, the Court may extract from all the information provided by the national court, in particular from the grounds of the decision to make the reference, the legislation and the principles of EU law that require interpretation in view of the subject matter of the dispute in the main proceedings. <footnote role="fNote" id="B110000005">
                           <number>7</number>
                           <para style="footnotetext" id="B150000048"> –	See, to that effect, judgments of 4 September 2014, <emphasis role="italc" id="B400000021">eco cosmetics and Raiffeisenbank St Georgen</emphasis> (C‑119/13 and C‑120/13, EU:C:2014:2144, paragraph 33) and of 23 April 2015, <emphasis role="italc" id="B400000022">Aykul</emphasis> (C‑260/13, EU:C:2015:257, paragraph 43 and the case-law cited).</para>
                        </footnote>
                     </para>
                  </blockquote>
                  <blockquote id="B010000043">
                     <title id="B210000023">
                        <number>24.</number>
                     </title>
                     <para style="01PointAltN" id="B150000049">By its questions, which should be examined together, the referring court in essence seeks to ascertain whether Article 6(1)(d) of Directive 2004/114 is to be interpreted as precluding a Member State from refusing to issue a visa to a third-country national in circumstances such as those of the case at issue where a third-country national from Iran, who obtained a university degree from an institution listed in Implementing Regulation No 1202/2014 as an entity ‘involved in nuclear or ballistic missile activities and persons and entities providing support to the Government of Iran’, intends to undertake a research project in a Member State in the field of IT security.</para>
                  </blockquote>
                  <blockquote id="B010000044">
                     <title id="B210000024">
                        <number>25.</number>
                     </title>
                     <para style="01PointAltN" id="B150000050">In this connection, the referring court seeks guidance on the concept of ‘public security’ within the meaning of Article 6(1)(d) of Directive 2004/114 as well as on the extent of discretion enjoyed by the competent national authorities and the extent of subsequent judicial review in this regard.</para>
                  </blockquote>
                  <section id="B000000008">
                     <title style="04Titre2" id="B200000007">
                        <number>A –</number>
                        <titlecontent id="B300000007">
                           <emphasis role="italc" id="B400000023">On the interpretation of Directive 2004/114</emphasis>
                        </titlecontent>
                     </title>
                     <blockquote id="B010000045">
                        <title id="B210000025">
                           <number>26.</number>
                        </title>
                        <para style="01PointAltN" id="B150000051">Since this is but the second case which has reached the Court on the interpretation of a provision of Directive 2004/114, I deem it helpful to establish and recall some basic features of this directive.</para>
                     </blockquote>
                     <section id="B000000009">
                        <title style="05Titre3" id="B200000008">
                           <number>1.</number>
                           <titlecontent id="B300000008">Public international law and right of entry</titlecontent>
                        </title>
                        <blockquote id="B010000046">
                           <title id="B210000026">
                              <number>27.</number>
                           </title>
                           <para style="01PointAltN" id="B150000052">Under public international law as it currently stands, first entry for the purpose of legal migration is an area of largely unfettered State discretion. <footnote role="fNote" id="B110000006">
                                 <number>8</number>
                                 <para style="footnotetext" id="B150000053"> –	See Thym, D., ‘Legal framework for entry and border controls’, in Hailbronner, K., and Thym, D. (eds.), <emphasis role="italc" id="B400000024">EU immigration and asylum law – a commentary</emphasis>, 2<emphasis role="suprscpt" id="B400000025">nd</emphasis> edition, C.H. Beck, Hart, Nomos, Munich, Oxford, Baden-Baden 2016, at point 32.</para>
                              </footnote> Traditionally States have no obligation under international law regarding the admission of foreigners and the conditions for such admission. <footnote role="fNote" id="B110000007">
                                 <number>9</number>
                                 <para style="footnotetext" id="B150000054"> –	See Hailbronner, K. and Gogolin, J., ‘Aliens’, in Wolfrum, R. (ed.), <emphasis role="italc" id="B400000026">Max Planck Encyclopedia of Public International Law</emphasis>, Oxford University Press, online edition (http://opil.ouplaw.com/home/EPIL), at point 14.</para>
                              </footnote> As Advocate General Mengozzi put it in his Opinion in <emphasis role="italc" id="B400000027">Koushkaki</emphasis>, <footnote role="fNote" id="B110000008">
                                 <number>10</number>
                                 <para style="footnotetext" id="B150000055"> –	C‑84/12, EU:C:2013:232, point 47.</para>
                              </footnote> ‘if there is a principle of international law deemed to be one of the characteristic manifestations of State sovereignty, it is that States have the right to control the entry of non-nationals to their territory’.</para>
                        </blockquote>
                        <blockquote id="B010000047">
                           <title id="B210000027">
                              <number>28.</number>
                           </title>
                           <para style="01PointAltN" id="B150000056">Such sovereignty is not, incidentally, called into question by international human rights treaties, which have always and traditionally been conceived as guarantees within existing States and not for transnational movement. <footnote role="fNote" id="B110000009">
                                 <number>11</number>
                                 <para style="footnotetext" id="B150000057"> –	See Hailbronner, K., and Gogolin, J., loc. cit., at points 14 to 22.</para>
                              </footnote> In a similar vein, the European Court of Human Rights (ECtHR) holds that, in principle, contracting States enjoy as a matter of well-established international law and subject to their treaty obligations the right to control the entry, residence and expulsion of aliens. <footnote role="fNote" id="B110000010">
                                 <number>12</number>
                                 <para style="footnotetext" id="B150000058"> –	This constitutes consistent case-law. See judgment of ECtHR of 18 February 1991, No 12313/86, <emphasis role="italc" id="B400000028">Moustaquim</emphasis> <emphasis role="italc" id="B400000029">v</emphasis>. <emphasis role="italc" id="B400000030">Belgium</emphasis>, CE:ECHR:1991:0218JUD001231386, § 43 and judgment of ECtHR of 26 July 2005, No 38885/02, <emphasis role="italc" id="B400000031">N. v. Finland</emphasis>, CE:ECHR:2003:0923DEC003888502, § 158.</para>
                              </footnote> It is true that that same court has slightly attenuated this principle with respect to the two distinct situations of <emphasis role="italc" id="B400000032">non-refoulement</emphasis> under Article 3 of the European Convention for the Protection of Human Rights and Fundamental Freedoms (ECHR), <footnote role="fNote" id="B110000011">
                                 <number>13</number>
                                 <para style="footnotetext" id="B150000059"> –	This constitutes consistent case-law since judgment of ECtHR of 7 July 1989, No 14038/88, <emphasis role="italc" id="B400000033">Soering v. the United Kingdom</emphasis>, CE:ECHR:1989:0707JUD001403888, § 91. See also judgment of ECtHR of 15 November 1996, No 22414/93, <emphasis role="italc" id="B400000034">Chahal v. the United Kingdom</emphasis>, CE:ECHR:1996:1115JUD002241493, § 73-74.</para>
                              </footnote> signed in Rome on 4 November 1950, and issues of family reunification under Article 8 of the ECHR, <footnote role="fNote" id="B110000012">
                                 <number>14</number>
                                 <para style="footnotetext" id="B150000060"> –	See judgments of ECtHR of 21 December 2001, No 31465/96, <emphasis role="italc" id="B400000035">Sen v. the Netherlands</emphasis>, CE:ECHR:2001:1221JUD003146596, § 40; of 1 December 2005, No 60665/00, <emphasis role="italc" id="B400000036">Tuquabo-Tekle and Others v. the Netherlands</emphasis>, CE:ECHR:2005:1201JUD006066500, § 50; and of 14 June 2011, No 38058/09, <emphasis role="italc" id="B400000037">Osman v. Denmark</emphasis>, CE:ECHR:2011:0614JUD003805809, § 53 et seq.</para>
                              </footnote> but that does not change the general principle under public international law described above.</para>
                        </blockquote>
                     </section>
                     <section id="B000000010">
                        <title style="05Titre3" id="B200000009">
                           <number>2.</number>
                           <titlecontent id="B300000009">The Charter</titlecontent>
                        </title>
                        <blockquote id="B010000048">
                           <title id="B210000028">
                              <number>29.</number>
                           </title>
                           <para style="01PointAltN" id="B150000061">The same is true of the Charter of Fundamental Rights of the European Union (‘the Charter’), which grants rights in two specific circumstances to third-country nationals in the context of free movement. Thus, Article 15(3) of the Charter provides that third-country nationals who are authorised to work in the territories of the Member States are entitled to working conditions equivalent to those of citizens of the Union, while Article 45(2) of the Charter stipulates that ‘freedom of movement and residence may be granted, <emphasis role="italc" id="B400000038">in accordance with the Treatie</emphasis>s, to nationals of third countries <emphasis role="italc" id="B400000039">legally resident</emphasis> in the territory of a Member State’. <footnote role="fNote" id="B110000013">
                                 <number>15</number>
                                 <para style="footnotetext" id="B150000062"> –	My emphasis.</para>
                              </footnote> The Charter, therefore, presupposes legal entry into the Union and does not create such a right. </para>
                        </blockquote>
                     </section>
                     <section id="B000000011">
                        <title style="05Titre3" id="B200000010">
                           <number>3.</number>
                           <titlecontent id="B300000010">EU immigration law</titlecontent>
                        </title>
                        <blockquote id="B010000049">
                           <title id="B210000029">
                              <number>30.</number>
                           </title>
                           <para style="01PointAltN" id="B150000063">EU immigration law in general is inextricably linked to the functioning of the internal market, as defined in Article 26(2) TFEU <footnote role="fNote" id="B110000014">
                                 <number>16</number>
                                 <para style="footnotetext" id="B150000064"> –	According to which, the internal market comprises an area <emphasis role="italc" id="B400000040">without internal frontiers</emphasis> in which the free movement of goods, persons, services and capital is ensured in accordance with the provisions of the Treaties.</para>
                              </footnote> in that an abolition of internal borders, including border controls, necessarily entails the need to provide for a common regime on external borders. <footnote role="fNote" id="B110000015">
                                 <number>17</number>
                                 <para style="footnotetext" id="B150000065"> –	This does not, however, imply that once a third-country national is admitted to a Member State he has an automatic right of mobility. Indeed, the directives adopted on the basis of Article 79 TFEU contain substantive restrictions to mobility within the EU. See, by way of example, Article 8 of Directive 2004/114 which subjects mobility (yet again) to the fulfilment of the general and specific conditions enshrined in Articles 6 and 7 of this directive.</para>
                              </footnote> This is why Article 61, point a), inserted into the EC Treaty by the Treaty of Amsterdam <footnote role="fNote" id="B110000016">
                                 <number>18</number>
                                 <para style="footnotetext" id="B150000066"> –	Which, incidentally, created the area of freedom, security and justice. This was further to a transfer of those matters closely related to the free movement of persons from the third pillar (TEU) to the first pillar (TEC). Henceforth, until the entry into force of the Treaty of Lisbon, this area was a cross-pillar area, part of its provisions being in the EC Treaty, and the other part being in the EU Treaty.</para>
                              </footnote> and applicable at the time of adoption of Directive 2004/114, refers to external border controls, asylum and immigration as ‘flanking measures’ which were ‘directly related’ to the free movement of persons. <footnote role="fNote" id="B110000017">
                                 <number>19</number>
                                 <para style="footnotetext" id="B150000067"> –	This wording has only vanished with the entry into force of the Treaty of Lisbon on 1 December 2009.</para>
                              </footnote>
                           </para>
                        </blockquote>
                     </section>
                     <section id="B000000012">
                        <title style="05Titre3" id="B200000011">
                           <number>4.</number>
                           <titlecontent id="B300000011">Objective of Directive 2004/114</titlecontent>
                        </title>
                        <blockquote id="B010000050">
                           <title id="B210000030">
                              <number>31.</number>
                           </title>
                           <para style="01PointAltN" id="B150000068">Directive 2004/114 should be seen in this context.</para>
                        </blockquote>
                        <blockquote id="B010000051">
                           <title id="B210000031">
                              <number>32.</number>
                           </title>
                           <para style="01PointAltN" id="B150000069">Based on what is now, after the entry into force of the Treaty of Lisbon, Article 79(2) TFEU, <footnote role="fNote" id="B110000018">
                                 <number>20</number>
                                 <para style="footnotetext" id="B150000070"> –	Common immigration policy. Formerly Article 63(3) and (4) EC.</para>
                              </footnote> Directive 2004/114 has as its purpose to determine ‘the <emphasis role="italc" id="B400000041">conditions</emphasis> for admission of third-country nationals to the territory of the Member States for a period exceeding three months for the purposes of studies …’ <footnote role="fNote" id="B110000019">
                                 <number>21</number>
                                 <para style="footnotetext" id="B150000071"> –	See Article 1(a) of Directive 2004/114. My emphasis.</para>
                              </footnote> as well as ‘the rules concerning the <emphasis role="italc" id="B400000042">procedures</emphasis> for admitting third-country nationals to the territory of the Member States for those purposes’. <footnote role="fNote" id="B110000020">
                                 <number>22</number>
                                 <para style="footnotetext" id="B150000072"> –	See Article 1(b) of Directive 2004/114. My emphasis.</para>
                              </footnote> On a more general level, the recitals <footnote role="fNote" id="B110000021">
                                 <number>23</number>
                                 <para style="footnotetext" id="B150000073"> –	The preamble to a Union measure may explain the measure’s content: see judgment of 22 December 2008, <emphasis role="italc" id="B400000043">Wallentin-Hermann</emphasis> (C‑549/07, EU:C:2008:771, paragraph 17 and the case-law cited).</para>
                              </footnote> of the Directive reveal that promoting the mobility of third-country nationals to the Union is a key factor in promoting Europe as a whole as a world centre of excellence for studies and vocational training <footnote role="fNote" id="B110000022">
                                 <number>24</number>
                                 <para style="footnotetext" id="B150000074"> –	See recital 6 of Directive 2004/114. </para>
                              </footnote> and that migration for the purposes set out in the Directive constitutes a form of mutual enrichment for the migrants concerned, their country of origin and the host Member State and helps to promote better familiarity among cultures. <footnote role="fNote" id="B110000023">
                                 <number>25</number>
                                 <para style="footnotetext" id="B150000075"> –	See recital 7 of Directive 2004/114.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000052">
                           <title id="B210000032">
                              <number>33.</number>
                           </title>
                           <para style="01PointAltN" id="B150000076">Its main objective is the interest of the Union in attracting to the Union qualified third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service. Creating rights for third-country nationals wishing to enter the Union is but a means to fulfil this objective. Put crudely, therefore, Directive 2004/114 is not a ‘human rights directive’, as compared with, for instance, secondary law on asylum.</para>
                        </blockquote>
                     </section>
                     <section id="B000000013">
                        <title style="05Titre3" id="B200000012">
                           <number>5.</number>
                           <titlecontent id="B300000012">Objective of Directive 2016/801</titlecontent>
                        </title>
                        <blockquote id="B010000053">
                           <title id="B210000033">
                              <number>34.</number>
                           </title>
                           <para style="01PointAltN" id="B150000077">To complete the picture, it should be mentioned that, in the meantime, the Union legislature has adopted Directive (EU) 2016/801, <footnote role="fNote" id="B110000024">
                                 <number>26</number>
                                 <para style="footnotetext" id="B150000078"> –	Directive of the European Parliament and of the Council of 11 May 2016 on the conditions of entry and residence of third-country nationals for the purposes of research, studies, training, voluntary service, pupil exchange schemes or educational projects and au pairing (recast) (OJ 2016 L 132, p. 21).</para>
                              </footnote> which merges the subjects-matters of Directive 2004/114 and of Directive 2005/71/EC, <footnote role="fNote" id="B110000025">
                                 <number>27</number>
                                 <para style="footnotetext" id="B150000079"> –	Directive of 12 October 2005 on a specific procedure for admitting third-country nationals for the purposes of scientific research (OJ 2005 L 289, p. 15).</para>
                              </footnote> while repealing those two legal instruments, with effect from 24 May 2018. <footnote role="fNote" id="B110000026">
                                 <number>28</number>
                                 <para style="footnotetext" id="B150000080"> –	See Article 41 of Directive 2016/801.</para>
                              </footnote> Though Directive 2016/801 is not applicable to the case at issue <emphasis role="italc" id="B400000044">ratione temporis</emphasis>, it nevertheless indicates the legislature’s intentions as they stand in 2016. </para>
                        </blockquote>
                        <blockquote id="B010000054">
                           <title id="B210000034">
                              <number>35.</number>
                           </title>
                           <para style="01PointAltN" id="B150000081">Adopted by the Council and the Parliament 12 years after Directive 2004/114, Directive 2016/801 is a good deal more elaborate on its purpose, as its preamble indicates. Thus, the recitals of Directive 2016/801 speak of attracting <emphasis role="italc" id="B400000045">highly skilled people</emphasis>, forming the Union’s key asset of <emphasis role="italc" id="B400000046">human capital</emphasis>, and ensuring <emphasis role="italc" id="B400000047">growth</emphasis>, <footnote role="fNote" id="B110000027">
                                 <number>29</number>
                                 <para style="footnotetext" id="B150000082"> –	See recital 3 of Directive 2016/801.</para>
                              </footnote> fostering people-to-people contacts and mobility, <footnote role="fNote" id="B110000028">
                                 <number>30</number>
                                 <para style="footnotetext" id="B150000083"> –	See recital 6 of Directive 2016/801.</para>
                              </footnote> mutual enrichment for the migrants concerned, their country of origin and the Member State concerned, while strengthening cultural links and enhancing cultural diversity, <footnote role="fNote" id="B110000029">
                                 <number>31</number>
                                 <para style="footnotetext" id="B150000084"> –	See recital 7 of Directive 2016/801.</para>
                              </footnote> promoting the Union as an attractive location for research which should lead to an increase in the Union’s overall competitiveness and growth rates while creating jobs that make a greater contribution to GDP growth <footnote role="fNote" id="B110000030">
                                 <number>32</number>
                                 <para style="footnotetext" id="B150000085"> –	See recital 8 of Directive 2016/801.</para>
                              </footnote> and making the Union more attractive to third-country nationals wishing to carry out a research activity. <footnote role="fNote" id="B110000031">
                                 <number>33</number>
                                 <para style="footnotetext" id="B150000086"> –	See recital 11 of Directive 2016/801.</para>
                              </footnote> And yet, the Union legislature does not seek to encourage a brain drain from emerging or developing countries, which is why measures to support researchers’ reintegration into their countries of origin should be taken in partnership with the countries of origin with a view to establishing a comprehensive migration policy. <footnote role="fNote" id="B110000032">
                                 <number>34</number>
                                 <para style="footnotetext" id="B150000087"> –	See recital 12 of Directive 2016/801.</para>
                              </footnote> At the same time Europe as a whole should be promoted as a world centre of excellence for studies in training and, to this aim, the conditions for entry and residence should be improved and simplified. <footnote role="fNote" id="B110000033">
                                 <number>35</number>
                                 <para style="footnotetext" id="B150000088"> –	See recital 14 of Directive 2016/801. </para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000055">
                           <title id="B210000035">
                              <number>36.</number>
                           </title>
                           <para style="01PointAltN" id="B150000089">This is hardly ‘human rights terminology’, but rather ‘internal market speak’.</para>
                        </blockquote>
                     </section>
                     <section id="B000000014">
                        <title style="05Titre3" id="B200000013">
                           <number>6.</number>
                           <titlecontent id="B300000013">Right of entry on the basis of <emphasis role="italc" id="B400000048">Ben Alaya</emphasis>
                           </titlecontent>
                        </title>
                        <blockquote id="B010000056">
                           <title id="B210000036">
                              <number>37.</number>
                           </title>
                           <para style="01PointAltN" id="B150000090">Obviously, the principle of public international law described above is widely curtailed as regards intra-EU situations within the internal market, including citizenship, where the Union resembles something close to a federal entity with extensive free movement of persons. But also as regards the external border of the Union, secondary law has begun to attenuate the general principle of public international law mentioned above, as can be seen in the case of Directive 2004/114.</para>
                        </blockquote>
                        <blockquote id="B010000057">
                           <title id="B210000037">
                              <number>38.</number>
                           </title>
                           <para style="01PointAltN" id="B150000091">The <emphasis role="italc" id="B400000049">Ben Alaya</emphasis> <footnote role="fNote" id="B110000034">
                                 <number>36</number>
                                 <para style="footnotetext" id="B150000092"> –<emphasis role="tab" id="B400000050"/>Judgment of 10 September 2014 (C‑491/13, EU:C:2014:2187).</para>
                              </footnote> case is a good illustration of this.</para>
                        </blockquote>
                        <blockquote id="B010000058">
                           <title id="B210000038">
                              <number>39.</number>
                           </title>
                           <para style="01PointAltN" id="B150000093">Mr Ben Alaya, a Tunisian national born in Germany who had left Germany at the age of six to live in Tunisia, intended to come back to Germany after his baccalaureate in order to take up university studies.  Although he had been accepted by the university to study mathematics, the German authorities refused to issue a student visa, as they had doubts as to his motivation for wishing to study in Germany, particularly in the light of the inadequacy of grades previously obtained, his weak knowledge of German and the fact that there was no connection between his proposed course of study and his intended career. <footnote role="fNote" id="B110000035">
                                 <number>37</number>
                                 <para style="footnotetext" id="B150000094"> –	See judgment of 10 September 2014, <emphasis role="italc" id="B400000051">Ben Alaya</emphasis> (C‑491/13, EU:C:2014:2187, paragraph 16).</para>
                              </footnote> Crucially, Mr Ben Alaya had met the general and specific conditions laid down in Articles 6 and 7 of Directive 2004/114. The German authorities, in reality, had tried to establish further conditions not provided for in the Directive.</para>
                        </blockquote>
                        <blockquote id="B010000059">
                           <title id="B210000039">
                              <number>40.</number>
                           </title>
                           <para style="01PointAltN" id="B150000095">It was in that particular context that the Court interpreted the Directive as meaning that where students from third countries meet the general and specific conditions exhaustively listed in Articles 6 and 7 of that directive, they must, pursuant to Article 12 of the Directive, be issued with a residence permit. <footnote role="fNote" id="B110000036">
                                 <number>38</number>
                                 <para style="footnotetext" id="B150000096"> –	Ibid., paragraph 27.</para>
                              </footnote> The Court added that ‘Directive 2004/114 allows Member States to exercise a measure of discretion when considering applications for admission’ <footnote role="fNote" id="B110000037">
                                 <number>39</number>
                                 <para style="footnotetext" id="B150000097"> –	Ibid., paragraph 33.</para>
                              </footnote> which, however relates ‘only to the conditions laid down in Articles 6 and 7 of that directive and, within that context, to the assessment of the relevant facts in order to determine whether those conditions are met and, in particular, whether there are grounds relating to the existence of a threat to public policy, public security or public health which preclude the admission of a third-country national’. <footnote role="fNote" id="B110000038">
                                 <number>40</number>
                                 <para style="footnotetext" id="B150000098"> –	Ibid.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000060">
                           <title id="B210000040">
                              <number>41.</number>
                           </title>
                           <para style="01PointAltN" id="B150000099">As a result, a residence permit ought to have been issued to Mr Ben Alaya. <footnote role="fNote" id="B110000039">
                                 <number>41</number>
                                 <para style="footnotetext" id="B150000100"> –	Ibid., paragraph 35.</para>
                              </footnote> The German Government could not introduce any conditions in addition to those listed in Articles 6 and 7 of Directive 2004/114.</para>
                        </blockquote>
                        <blockquote id="B010000061">
                           <title id="B210000041">
                              <number>42.</number>
                           </title>
                           <para style="01PointAltN" id="B150000101">Subject to the general and specific conditions under Articles 6 and 7 of Directive 2004/114, a third-country national therefore has a right to enter the Union. And yet, given the discretion a Member State has in determining whether the general and specific conditions are fulfilled, the scope of such a right differs substantially from the rights stemming from free movement in the internal market.</para>
                        </blockquote>
                     </section>
                     <section id="B000000015">
                        <title style="05Titre3" id="B200000014">
                           <number>7.</number>
                           <titlecontent id="B300000014">
                              <emphasis role="italc" id="B400000052">Koushkaki</emphasis> and <emphasis role="italc" id="B400000053">Air Baltic Corporation</emphasis>
                           </titlecontent>
                        </title>
                        <blockquote id="B010000062">
                           <title id="B210000042">
                              <number>43.</number>
                           </title>
                           <para style="01PointAltN" id="B150000102">Two further judgments should be mentioned at this stage: <emphasis role="italc" id="B400000054">Koushkaki</emphasis> <footnote role="fNote" id="B110000040">
                                 <number>42</number>
                                 <para style="footnotetext" id="B150000103"> –	Judgment of 19 December 2013 (C‑84/12, EU:C:2013:862).</para>
                              </footnote> on Regulation (EC) No 810/2009 of the European Parliament and of the Council of 13 July 2009 establishing a Community Code on Visas (Visa Code) <footnote role="fNote" id="B110000041">
                                 <number>43</number>
                                 <para style="footnotetext" id="B150000104"> –	OJ 2009 L 243, p. 1.</para>
                              </footnote> and <emphasis role="italc" id="B400000055">Air Baltic Corporation</emphasis> <footnote role="fNote" id="B110000042">
                                 <number>44</number>
                                 <para style="footnotetext" id="B150000105"> –	Judgment of 4 September 2014 (C‑575/12, EU:C:2014:2155).</para>
                              </footnote> on Regulation (EC) No 562/2006 of the European Parliament and of the Council of 15 March 2006 establishing a Community Code on the rules governing the movement of persons across borders (Schengen Borders Code). <footnote role="fNote" id="B110000043">
                                 <number>45</number>
                                 <para style="footnotetext" id="B150000106"> –	OJ 2006 L 105, p. 1.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000063">
                           <title id="B210000043">
                              <number>44.</number>
                           </title>
                           <para style="01PointAltN" id="B150000107">The application of Mr Koushkaki, an Iranian national, for a uniform visa had been rejected by the German authorities on the ground that he had not proved that he had sufficient means of subsistence either for the duration of the stay envisaged or to return to his country of origin. Such a condition is not foreseen by the Visa Code. None of the grounds for refusal of a visa listed in Article 32(1) of the Visa Code applied. Accordingly, the Court held that the competent authorities of a Member State could not refuse, following the application for a uniform visa, to issue such a visa to an applicant unless one of the grounds for refusal of a visa listed in the Visa Code applied to that applicant. <footnote role="fNote" id="B110000044">
                                 <number>46</number>
                                 <para style="footnotetext" id="B150000108"> –	Judgment of 19 December 2013, <emphasis role="italc" id="B400000056">Koushkaki</emphasis> (C‑84/12, EU:C:2013:862, paragraph 63).</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000064">
                           <title id="B210000044">
                              <number>45.</number>
                           </title>
                           <para style="01PointAltN" id="B150000109">In <emphasis role="italc" id="B400000057">Air Baltic Corporation</emphasis>, the Court was faced with the question whether national legislation making the entry of third-country nationals to the territory of a Member State subject to the condition that, at the border check, the valid visa presented must necessarily be affixed to a valid travel document, a condition not provided for in Article 5 of the Schengen Borders Code, was in conformity with the Schengen Borders Code. Applying <emphasis role="italc" id="B400000058">Koushkaki</emphasis> by analogy, the Court held that the list of entry conditions laid down in Article 5 of the Schengen Borders Code was exhaustive. <footnote role="fNote" id="B110000045">
                                 <number>47</number>
                                 <para style="footnotetext" id="B150000110"> –	See judgment of 4 September 2014, <emphasis role="italc" id="B400000059">Air Baltic Corporation</emphasis> (C‑575/12, EU:C:2014:2155, paragraph 62).</para>
                              </footnote>
                           </para>
                        </blockquote>
                     </section>
                  </section>
                  <section id="B000000016">
                     <title style="04Titre2" id="B200000015">
                        <number>B –</number>
                        <titlecontent id="B300000015">
                           <emphasis role="italc" id="B400000060">On Article 6(1)(d) of Directive 2004/114</emphasis>
                        </titlecontent>
                     </title>
                     <blockquote id="B010000065">
                        <title id="B210000045">
                           <number>46.</number>
                        </title>
                        <para style="01PointAltN" id="B150000111">Although the referring court refers in its actual questions to public policy, public security and public health, for me these questions are clearly geared towards ‘public security’, as is apparent from the fact that in the order for a preliminary reference the referring court consistently refers to ‘public security’ alone when it comes to the case of Ms Fahimian.</para>
                     </blockquote>
                     <blockquote id="B010000066">
                        <title id="B210000046">
                           <number>47.</number>
                        </title>
                        <para style="01PointAltN" id="B150000112">The German Government regards Ms Fahimian as a threat to public security within the meaning of Article 6(1)(d) of Directive 2004/114. It bases this opinion on the consideration that the situation in Iran poses a sufficiently serious risk that the skills acquired during the course of the applicant’s research project could be misused in her home country. The intended doctorate in a sensitive and security-related research area could involve the acquisition of knowledge capable of being misused for military purposes and/or for acts of internal repression or more generally in connection with human-rights abuses in Iran. Also, the knowledge acquired of systems and equipment for telecommunications and internet services, and of encryption and cryptography technology could be misused by police or intelligence agencies to monitor the population.</para>
                     </blockquote>
                     <blockquote id="B010000067">
                        <title id="B210000047">
                           <number>48.</number>
                        </title>
                        <para style="01PointAltN" id="B150000113">The question which arises is, therefore, whether such considerations are covered by the terms ‘public security’ within the meaning of Article 6(1)(d) of Directive 2004/114.</para>
                     </blockquote>
                     <section id="B000000017">
                        <title style="05Titre3" id="B200000016">
                           <number>1.</number>
                           <titlecontent id="B300000016">On ‘public security’</titlecontent>
                        </title>
                        <blockquote id="B010000068">
                           <title id="B210000048">
                              <number>49.</number>
                           </title>
                           <para style="01PointAltN" id="B150000114">There is no general definition of the terms ‘public security’ at the level of the EU. In principle it is for a Member State to define the content of ‘public security’. EU law then comes in at two stages: first, in framing this content and, secondly, in the relationship between the individual concerned and ‘public security’.</para>
                        </blockquote>
                        <blockquote id="B010000069">
                           <title id="B210000049">
                              <number>50.</number>
                           </title>
                           <para style="01PointAltN" id="B150000115">The Court does not tend to be too strict at the first stage when it comes to framing ‘public security.’ The Court holds consistently, in the context of the internal market, <footnote role="fNote" id="B110000046">
                                 <number>48</number>
                                 <para style="footnotetext" id="B150000116"> –	See, by way of example, judgment of 17 November 2011, <emphasis role="italc" id="B400000061">Gaydarov</emphasis> (C‑430/10, EU:C:2011:749, paragraph 32 and the case-law cited).</para>
                              </footnote> that ‘Member States essentially retain the freedom to determine the requirements of public policy and public security in accordance with their national needs, which can vary from one Member State to another and from one era to another’. <footnote role="fNote" id="B110000047">
                                 <number>49</number>
                                 <para style="footnotetext" id="B150000117"> –	See judgment of 22 May 2012, <emphasis role="italc" id="B400000062">I</emphasis> (C‑348/09, EU:C:2012:300, paragraph 23 and the case-law cited). </para>
                              </footnote> What is important is that the scope of the requirements cannot be determined unilaterally by each Member State without any control by the institutions of the Union. <footnote role="fNote" id="B110000048">
                                 <number>50</number>
                                 <para style="footnotetext" id="B150000118"> –	Ibid.</para>
                              </footnote> The Court has, moreover, with respect to ‘public policy’ under Article 7(4) <footnote role="fNote" id="B110000049">
                                 <number>51</number>
                                 <para style="footnotetext" id="B150000119"> –	‘If there is a risk of absconding, or if an application for a legal stay has been dismissed as manifestly unfounded or fraudulent, or if the person concerned poses a risk to public policy, public security or national security, Member States may refrain from granting a period for voluntary departure, or may grant a period shorter than seven days.’</para>
                              </footnote> of Directive 2008/115/EC, <footnote role="fNote" id="B110000050">
                                 <number>52</number>
                                 <para style="footnotetext" id="B150000120"> –	Directive of the European Parliament and of the Council of 16 December 2008 on common standards and procedures in Member States for returning illegally staying third-country nationals (OJ 2008 L 348, p. 98).</para>
                              </footnote> employed the same formula. <footnote role="fNote" id="B110000051">
                                 <number>53</number>
                                 <para style="footnotetext" id="B150000121"> –	See judgment of 11 June 2015, <emphasis role="italc" id="B400000063">Zh. and O.</emphasis> (C‑554/13, EU:C:2015:377, paragraph 48).</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000070">
                           <title id="B210000050">
                              <number>51.</number>
                           </title>
                           <para style="01PointAltN" id="B150000122">The term ‘public security’ is referred to in the context of all internal market freedoms, including in Directive 2004/38/EC, <footnote role="fNote" id="B110000052">
                                 <number>54</number>
                                 <para style="footnotetext" id="B150000123"> –	Directive of the European Parliament and of the Council of 29 April 2004 on the right of citizens of the Union and their family members to move and reside freely within the territory of the Member States amending Regulation (EEC) No 1612/68 and repealing Directives 64/221/EEC, 68/360/EEC, 72/194/EEC, 73/148/EEC, 75/34/EEC, 75/35/EEC, 90/364/EEC, 90/365/EEC and 93/96/EEC (OJ 2004 L 158, p. 77): see Articles 1(c), 15(1), 27, 28, 30(2), 31, 32(1) and 33(2).</para>
                              </footnote> which specifies the rules on free movement and on citizenship in the context of free movement, <footnote role="fNote" id="B110000053">
                                 <number>55</number>
                                 <para style="footnotetext" id="B150000124"> –	Accordingly, the legal bases of this directive are to be found in the chapters on citizenship (Articles 18 and 21 TFEU), freedom of movement for workers (Article 46 TFEU), freedom of establishment (Article 50 TFEU) and freedom to provide services (Article 59 TFEU).</para>
                              </footnote> as a ground of justification for a derogation from free movement. <footnote role="fNote" id="B110000054">
                                 <number>56</number>
                                 <para style="footnotetext" id="B150000125"> –	Free movement of goods (Articles 36 TFEU), freedom of movement for workers (Article 45(3) TFEU), right of establishment (Article 52(1) TFEU), freedom to provide services (Articles 56, 61 and 52(2) TFEU), free movement of capital (Article 65(1)(b) TFEU). There is also a reference to those terms in Article 202 TFEU, the legal basis for the Union acts in the domain of freedom of movement for workers from overseas countries and territories.</para>
                              </footnote> Moreover, the Court has recently allowed for a public security exception in the context of the Treaty rules on EU citizenship, by holding in <emphasis role="italc" id="B400000064">CS</emphasis> ‘that Article 20 TFEU does not affect the possibility of Member States relying on an exception linked, in particular, to upholding the requirements of public policy and safeguarding public security’. <footnote role="fNote" id="B110000055">
                                 <number>57</number>
                                 <para style="footnotetext" id="B150000126"> –	See judgment of 13 September 2016, <emphasis role="italc" id="B400000065">CS</emphasis> (C‑304/14, EU:C:2016:674, paragraph 36), thereby following my Opinion in Joined Cases <emphasis role="italc" id="B400000066">Rendón Marín and CS</emphasis> (C‑165/14 and C‑304/14, EU:C:2016:75), see point 140 et seq. of my Opinion.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000071">
                           <title id="B210000051">
                              <number>52.</number>
                           </title>
                           <para style="01PointAltN" id="B150000127">In this context, the Court has repeatedly held that public security ‘covers both a Member State’s internal and its external security’ <footnote role="fNote" id="B110000056">
                                 <number>58</number>
                                 <para style="footnotetext" id="B150000128"> –	See, by way of example, judgment of 13 September 2016, <emphasis role="italc" id="B400000067">CS</emphasis> (C‑304/14, EU:C:2016:674, paragraph 39 and the case-law cited). See also my Opinion in Joined Cases <emphasis role="italc" id="B400000068">Rendón Marín and CS</emphasis> (C‑165/14 and C‑304/14, EU:C:2016:75, at point 170). <emphasis role="italc" id="B400000069">CS</emphasis> was about citizenship, but the formula has its origins in the internal market freedoms and is resorted to in all of them.</para>
                              </footnote> which may entail ‘a threat to the functioning of institutions and essential public services and the survival of the population, as well as the risk of a serious disturbance to foreign relations or to peaceful coexistence of nations, or a risk to military interests’. <footnote role="fNote" id="B110000057">
                                 <number>59</number>
                                 <para style="footnotetext" id="B150000129"> –	See judgment of 13 September 2016, <emphasis role="italc" id="B400000070">CS</emphasis> (C‑304/14, EU:C:2016:674, paragraph 39).</para>
                              </footnote> Moreover, the Court has also held that the concept of ‘public security’ comprises the fight against crime in connection with drug trafficking as part of an organised group, <footnote role="fNote" id="B110000058">
                                 <number>60</number>
                                 <para style="footnotetext" id="B150000130"> –	See judgment of 23 November 2010, <emphasis role="italc" id="B400000071">Tsakouridis</emphasis> (C‑145/09, EU:C:2010:708, paragraphs 45 and 46).</para>
                              </footnote> combating the sexual exploitation of children <footnote role="fNote" id="B110000059">
                                 <number>61</number>
                                 <para style="footnotetext" id="B150000131"> –	See judgment of 22 May 2012, <emphasis role="italc" id="B400000072">I</emphasis> (C‑348/09, EU:C:2012:300, paragraph 28).</para>
                              </footnote> and the fight against terrorism. <footnote role="fNote" id="B110000060">
                                 <number>62</number>
                                 <para style="footnotetext" id="B150000132"> –	See judgment of 26 November 2002, <emphasis role="italc" id="B400000073">Oteiza Olazabal</emphasis> (C‑100/01, EU:C:2002:712, paragraphs 12 and 35).</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000072">
                           <title id="B210000052">
                              <number>53.</number>
                           </title>
                           <para style="01PointAltN" id="B150000133">Given such a wide interpretation, I would not be opposed to subsuming the German preoccupations under the terms of ‘public security’. The main worry of the German authorities appears to be that Ms Fahimian will disseminate her knowledge for military purposes once she is back in Iran. Security aspects of a Member State’s international and external relations should therefore be covered by ‘public security’. It should be remembered that the Visa Code specifically refers to a ‘threat … to the international relations of any of the Member States’ <footnote role="fNote" id="B110000061">
                                 <number>63</number>
                                 <para style="footnotetext" id="B150000134"> –	See Article 32(1)(a)(vi) of the Visa Code.</para>
                              </footnote> as a ground for refusing a visa. A lack of such wording in Article 6(1)(d) of Directive 2004/114 does not, in my view, imply that, when determining public security, a Member State cannot resort to considerations of international relations.</para>
                        </blockquote>
                     </section>
                     <section id="B000000018">
                        <title style="05Titre3" id="B200000017">
                           <number>2.</number>
                           <titlecontent id="B300000017">On the German Government’s margin of discretion <footnote role="fNote" id="B110000062">
                                 <number>64</number>
                                 <para style="footnotetext" id="B150000135"> –	In contrast to EU law, German administrative law differentiates between what is called a <emphasis role="italc" id="B400000074">Beurteilungsspielraum </emphasis>and what is called <emphasis role="italc" id="B400000075">Ermessen</emphasis>. While the former concerns the material requirements of a norm, the latter comes into play only at the level of legal consequences, once a norm is fulfilled (‘Rechtsfolgenseite’). This distinction is, however, of no relevance to the case at issue, given that EU law does not operate such a distinction, which is why the terms ‘margin of discretion’ in the Court’s case-law are sometimes referred to as ‘Beurteilungsspielraum’ and sometimes as ‘Ermessen’.</para>
                              </footnote> in establishing a ‘threat’ to public security</titlecontent>
                        </title>
                        <blockquote id="B010000073">
                           <title id="B210000053">
                              <number>54.</number>
                           </title>
                           <para style="01PointAltN" id="B150000136">But can the German authorities, at the second stage, validly claim that they ‘regard’ Ms Fahimian ‘as a threat’ to public policy in the sense of Article 6(1)(d) of the Directive? In other words, how wide is the margin of discretion available to the German authorities?</para>
                        </blockquote>
                        <blockquote id="B010000074">
                           <title id="B210000054">
                              <number>55.</number>
                           </title>
                           <para style="01PointAltN" id="B150000137">Under the internal-market freedoms, where Member States may restrict internal movement on grounds of public security, such grounds are conceived as an <emphasis role="italc" id="B400000076">exception</emphasis> of the general rule of free movement. Under free movement rules, ‘public security’ is to be based exclusively on the personal conduct of the individual concerned, which means that previous criminal convictions are not in themselves to constitute grounds for taking such measures, and which implies moreover that the personal conduct of the individual concerned must represent a genuine, present and sufficiently serious threat affecting one of the fundamental interests of society. <footnote role="fNote" id="B110000063">
                                 <number>65</number>
                                 <para style="footnotetext" id="B150000138"> –	See Article 27(2) and (3) of Directive 2004/38 which is taken to codify previous Court case-law with respect to the Treaty freedoms.</para>
                              </footnote> Justifications that are isolated from the particulars of the case or that rely on considerations of general prevention are not accepted. <footnote role="fNote" id="B110000064">
                                 <number>66</number>
                                 <para style="footnotetext" id="B150000139"> –	See Article 27(2) of Directive 2004/38.</para>
                              </footnote> There has to be ‘a genuine, present and sufficiently serious threat affecting one of the fundamental interests of society’. <footnote role="fNote" id="B110000065">
                                 <number>67</number>
                                 <para style="footnotetext" id="B150000140"> –	Ibid.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000075">
                           <title id="B210000055">
                              <number>56.</number>
                           </title>
                           <para style="01PointAltN" id="B150000141">Such considerations are fully appropriate in an internal-market context. It is understandable that exceptions to free movement rules are interpreted in a narrow manner. Free movement rules are and continue to be the cornerstone of the whole integration project and are of constitutional importance. </para>
                        </blockquote>
                        <blockquote id="B010000076">
                           <title id="B210000056">
                              <number>57.</number>
                           </title>
                           <para style="01PointAltN" id="B150000142">But a different approach should be taken with respect to Article 6(1)(d) of Directive 2004/114. The case-law mentioned above should not be transposed, as such, to the Union’s external border regime, as I shall now outline.</para>
                        </blockquote>
                        <blockquote id="B010000077">
                           <title id="B210000057">
                              <number>58.</number>
                           </title>
                           <para style="01PointAltN" id="B150000143">First of all, the wording of the internal market exceptions differs from that of Article 6(1)(d) of Directive 2004/114. Article 6(1)(d) of the Directive states that a third country national who applies to be admitted for the purposes set out in Articles 7 to 11 shall ‘not be regarded’ as a threat to, inter alia, public security. The use of the terms ‘be regarded’ implies for me that the Member State concerned has greater leeway when it makes its assessment. The term ‘threat’ is not qualified as it is in the context of free movement. There is no use of the terms ‘genuine, precise and sufficiently serious’ in relation to a threat. As a consequence, the threshold of a threat to public security is, in my view, considerably lower than it is in the context of free movement.</para>
                        </blockquote>
                        <blockquote id="B010000078">
                           <title id="B210000058">
                              <number>59.</number>
                           </title>
                           <para style="01PointAltN" id="B150000144">Secondly, not to be regarded as a threat to public security is not an exception to a widely construed right of entry, but merely a negative <emphasis role="italc" id="B400000077">condition </emphasis>governing a right of entry. The context is therefore simply other than that of the internal market, and context matters. The specific context of EU immigration law implies that a third-country national does not benefit from the same rights as a national of a Member State, i.e. an EU citizen. <footnote role="fNote" id="B110000066">
                                 <number>68</number>
                                 <para style="footnotetext" id="B150000145"> –	A similar argument is made in legal writing by Hailbronner, K., and Thym, D., ‘Constitutional framework and principles for interpretation’, in Hailbronner, K., and Thym, D. (eds), <emphasis role="italc" id="B400000078">EU immigration and asylum law – a commentary</emphasis>, 2<emphasis role="suprscpt" id="B400000079">nd</emphasis> edition, C.H. Beck, Hart, Nomos, Munich, Oxford, Baden-Baden 2016, at point 20.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000079">
                           <title id="B210000059">
                              <number>60.</number>
                           </title>
                           <para style="01PointAltN" id="B150000146">Thirdly, the legislative process in particular of Article 6(1)(d) of Directive 2004/114 offers valuable insight in support of my argument. Directive 2004/114 was adopted very shortly after Directive 2004/38. <footnote role="fNote" id="B110000067">
                                 <number>69</number>
                                 <para style="footnotetext" id="B150000147"> –	Directive 2004/38 dates from 29 April 2004, whereas Directive 2004/114 was adopted on 13 December 2004.</para>
                              </footnote> The clear difference in wording described above can only have been intentional. Indeed, the original proposal had sought to align the wording in both these directives. In two instances, it contained the phrase ‘public policy or public security grounds shall be based exclusively on the conduct of the third-country national concerned’. <footnote role="fNote" id="B110000068">
                                 <number>70</number>
                                 <para style="footnotetext" id="B150000148"> –	Under ‘general conditions’ concerning conditions of entry and residence in draft Article 5(1)(c) and under ‘withdrawal of permits’ in draft Article 15(2). See Commission Proposal for a Council Directive on the conditions of entry and residence of third-country nationals for the purposes of studies, vocational training or voluntary service, COM(2002) 548 final, at pp. 26 and 30 respectively.</para>
                              </footnote> The Council decided not to take up this terminology. <footnote role="fNote" id="B110000069">
                                 <number>71</number>
                                 <para style="footnotetext" id="B150000149"> –	That occurred further to a proposal of the relevant Council Working Party. See ‘Outcome of proceedings, Working Party on Migration and Expulsion – Proposal for a Council Directive on the conditions of entry and residence of third-country nationals for the purposes of studies, vocational training or voluntary service’, Brussels, 28.11.2003, 1513/03 MIGR 103, p. 9.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000080">
                           <title id="B210000060">
                              <number>61.</number>
                           </title>
                           <para style="01PointAltN" id="B150000150">Finally, it should be borne in mind that Directive 2004/114 is based on Article 79 TFEU (formerly Article 63 EC) in Part 3, Title V of the FEU Treaty. That Title includes Article 72 TFEU according to which ‘this Title shall not affect the exercise of the responsibilities incumbent upon Member States with regard to the maintenance of law and order and the safeguarding of internal security’. Even though the exact meaning of this provision is not fully clear at first sight, it does point to a difference between public policy and security in free movement law and in immigration law. <footnote role="fNote" id="B110000070">
                                 <number>72</number>
                                 <para style="footnotetext" id="B150000151"> –	This view is also held by Hailbronner, K., and Gies, S., ‘Council Directive 2004/114/EC of 13 December 2004 on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service’, in Hailbronner, K., and Thym, D. (eds.), <emphasis role="italc" id="B400000080">EU immigration and asylum law – a commentary</emphasis>, 2<emphasis role="suprscpt" id="B400000081">nd</emphasis> edition, C.H. Beck, Hart, Nomos, Munich, Oxford, Baden-Baden 2016, Article 6, point 7. The opposing view in legal writing thinks that there is no reference in the text or preamble of Directive 2004/114 to Article 72 TFEU which implies, in that view, that ‘a narrow interpretation of the public policy exception would bolster the objective of the legislation to attract students to the EU’, see Peers, S., in Peers, S, Guild, E., Acosta Arcarazo, D. Groenendijk, K., Moreno-Lax, V. (eds), <emphasis role="italc" id="B400000082">EU Immigration and Asylum Law (Text and Commentary): Second Revised Edition, Volume 2: EU Immigration Law</emphasis>, Martinus Nijhoff Publishers, Leiden, Boston 2012, Chapter 7, p. 202.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000081">
                           <title id="B210000061">
                              <number>62.</number>
                           </title>
                           <para style="01PointAltN" id="B150000152">This leads me to the question of how wide the margin of discretion of the German authorities is and what can be expected of them in a case such as the one at issue. What the referring court seeks to ascertain is whether this ‘wide discretion’ implies that it is enough for the German authorities to have established that (1) Ms Fahimian is an Iranian national, (2) she obtained her degree at the SUT, (3) the SUT is classified as an establishment that supports the Iranian Government in Annex IX to Regulation No 267/2012 <footnote role="fNote" id="B110000071">
                                 <number>73</number>
                                 <para style="footnotetext" id="B150000153"> –	And is, moreover, listed as such an entity in section I, point 161, of the Annex to Implementing Regulation No 1202/2014.</para>
                              </footnote> and (4) her proposed area of research is in the field of IT-security.</para>
                        </blockquote>
                        <blockquote id="B010000082">
                           <title id="B210000062">
                              <number>63.</number>
                           </title>
                           <para style="01PointAltN" id="B150000154">In <emphasis role="italc" id="B400000083">Ben Alaya</emphasis>, the Court held that, regarding the conditions laid down in Articles 6 and 7 of Directive 2004/114, Member States could ‘exercise a measure of discretion when considering applications for admission’. <footnote role="fNote" id="B110000072">
                                 <number>74</number>
                                 <para style="footnotetext" id="B150000155"> –	See judgment of 10 September 2014, <emphasis role="italc" id="B400000084">Ben Alaya</emphasis> (C‑491/13, EU:C:2014:2187, paragraph 33).</para>
                              </footnote> Such discretion relates to the assessment of the relevant facts in order to determine whether the conditions of Articles 6 and 7 of Directive 2004/114 are met. <footnote role="fNote" id="B110000073">
                                 <number>75</number>
                                 <para style="footnotetext" id="B150000156"> –	Ibid.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000083">
                           <title id="B210000063">
                              <number>64.</number>
                           </title>
                           <para style="01PointAltN" id="B150000157">Nine months earlier, sitting as the Grand Chamber, the Court had afforded Member States examining visa applications a ‘<emphasis role="italc" id="B400000085">wide</emphasis> discretion’ <footnote role="fNote" id="B110000074">
                                 <number>76</number>
                                 <para style="footnotetext" id="B150000158"> –	See judgment of 19 December 2013, <emphasis role="italc" id="B400000086">Koushkaki</emphasis> (C‑84/12, EU:C:2013:862, paragraphs 60, 61, 63 and operative part). My emphasis.</para>
                              </footnote> when it comes to the application of Articles 21(1), 32(1) and 35(6) of the Visa Code. This relates, according to the Court, ‘to the assessment of the relevant facts in order to determine whether the grounds set out in [Articles 32(1) and 35(6) of the Visa Code] preclude the issue of the visa applied for’. <footnote role="fNote" id="B110000075">
                                 <number>77</number>
                                 <para style="footnotetext" id="B150000159"> –	Ibid., paragraph 60.</para>
                              </footnote>
                           </para>
                        </blockquote>
                        <blockquote id="B010000084">
                           <title id="B210000064">
                              <number>65.</number>
                           </title>
                           <para style="01PointAltN" id="B150000160">On the basis of this, what can be expected of the German authorities? </para>
                        </blockquote>
                        <blockquote id="B010000085">
                           <title id="B210000065">
                              <number>66.</number>
                           </title>
                           <para style="01PointAltN" id="B150000161">First and foremost, a Member State must carefully and comprehensively ascertain, determine and investigate all relevant facts so as to be able to take an informed decision. I would, in this context, also like to point to recital 14 of Directive 2004/114, according to which there must be ‘an assessment of the facts’.</para>
                        </blockquote>
                        <blockquote id="B010000086">
                           <title id="B210000066">
                              <number>67.</number>
                           </title>
                           <para style="01PointAltN" id="B150000162">In this context, it must be remembered, however, that a number of the factual elements which a Member State relies on in a case such as the one at issue are outside its jurisdiction and even outside the territory of the Union. This obviously makes matters more difficult for a Member State and should duly be taken into account. For the German Government, it is more difficult to establish facts pertaining to Iran than to Germany or another Member State. Moreover, any evaluation about a future development is of inherent complexity. <footnote role="fNote" id="B110000076">
                                 <number>78</number>
                                 <para style="footnotetext" id="B150000163"> –	Even though it has to be admitted that the same obstacle exists under the free movement rules where a Member State cannot restrict free movement as a sanction for what someone has done, but only what it is suspected he or she will do in future.</para>
                              </footnote> Such a decision-making process necessarily implies relying to some extent on a risk-assessment of future events. There is thus a considerable ‘“fact-finding” discretion’ <footnote role="fNote" id="B110000077">
                                 <number>79</number>
                                 <para style="footnotetext" id="B150000164"> –	In the catchy formulation of Hailbronner, K., and Gies, S., ‘Council Directive 2004/114/EC of 13 December 2004 on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service’, in Hailbronner, K., and Thym, D. (eds.), <emphasis role="italc" id="B400000087">EU immigration and asylum law – a commentary</emphasis>, 2<emphasis role="suprscpt" id="B400000088">nd</emphasis> edition, C.H. Beck, Hart, Nomos, Munich, Oxford, Baden-Baden 2016, Article 5, point 15.</para>
                              </footnote> for a Member State when it comes to assessing Articles 6 and 7 of Directive 2004/114.</para>
                        </blockquote>
                        <blockquote id="B010000087">
                           <title id="B210000067">
                              <number>68.</number>
                           </title>
                           <para style="01PointAltN" id="B150000165">Secondly, while the relatively high threshold of personal behaviour under free movement <footnote role="fNote" id="B110000078">
                                 <number>80</number>
                                 <para style="footnotetext" id="B150000166"> –	Pursuant to Article 27(2) of Directive 2004/38, measures taken by Member States are to be based exclusively on the personal conduct of the individual concerned. Such personal conduct must represent a genuine, present and sufficiently serious threat affecting one of the fundamental interests of society. Justifications that are isolated from the particulars of the case or that rely on considerations of general prevention shall not be accepted.</para>
                              </footnote> does not apply, there has to be a link between the individual person and the measure taken. Anything else would amount to a form of blanket ban which would rarely lead to a right of entry for a third-country national on the basis of Directive 2004/114. Ergo, a national authority has to convincingly furnish concrete elements as to why the individual concerned is regarded as a threat to public security.</para>
                        </blockquote>
                        <blockquote id="B010000088">
                           <title id="B210000068">
                              <number>69.</number>
                           </title>
                           <para style="01PointAltN" id="B150000167">Moreover, the more sensitive the matter, the less individual circumstances need to be furnished to justify a threat to public security.</para>
                        </blockquote>
                        <blockquote id="B010000089">
                           <title id="B210000069">
                              <number>70.</number>
                           </title>
                           <para style="01PointAltN" id="B150000168">Finally, a Member State should undertake a comprehensive weighing of its interest and the Union’s interest in entry, i.e. attracting highly-qualified students to undertake research in the Union against security issues. </para>
                        </blockquote>
                        <blockquote id="B010000090">
                           <title id="B210000070">
                              <number>71.</number>
                           </title>
                           <para style="01PointAltN" id="B150000169">Though it is obviously for the referring court to determine whether the German authorities have complied with these requirements, I am under the impression that they have acted within the margin of discretion they dispose of.</para>
                        </blockquote>
                     </section>
                  </section>
                  <section id="B000000019">
                     <title style="04Titre2" id="B200000018">
                        <number>C –</number>
                        <titlecontent id="B300000018">
                           <emphasis role="italc" id="B400000089">On judicial review</emphasis>
                        </titlecontent>
                     </title>
                     <blockquote id="B010000091">
                        <title id="B210000071">
                           <number>72.</number>
                        </title>
                        <para style="01PointAltN" id="B150000170">A wide margin of discretion implies limited judicial review. Otherwise the margin of discretion would be frustrated and the judiciary would be doing the job of the executive. As is apparent from the way Question 1(a) is phrased, <footnote role="fNote" id="B110000079">
                              <number>81</number>
                              <para style="footnotetext" id="B150000171"> –	‘…as a result of which discretion the assessment by the authorities may be subject to only limited judicial review’.</para>
                           </footnote> the referring court is fully aware of this.</para>
                     </blockquote>
                     <blockquote id="B010000092">
                        <title id="B210000072">
                           <number>73.</number>
                        </title>
                        <para style="01PointAltN" id="B150000172">And yet, judicial review has to be available.</para>
                     </blockquote>
                     <blockquote id="B010000093">
                        <title id="B210000073">
                           <number>74.</number>
                        </title>
                        <para style="01PointAltN" id="B150000173">Pursuant to Article 18(4) of Directive 2004/114, where an application is rejected or a residence permit issued in accordance with this directive is withdrawn, the person concerned is to have the right to mount a legal challenge before the authorities of the Member State concerned.</para>
                     </blockquote>
                     <blockquote id="B010000094">
                        <title id="B210000074">
                           <number>75.</number>
                        </title>
                        <para style="01PointAltN" id="B150000174">Contrary to the initial Commission proposal, <footnote role="fNote" id="B110000080">
                              <number>82</number>
                              <para style="footnotetext" id="B150000175"> –	See draft Article 20(3) of the Commission Proposal for a Council Directive on the conditions of entry and residence of third-country nationals for the purposes of studies, vocational training or voluntary service, COM(2002)548 final, at p. 40.</para>
                           </footnote> the right of appeal no longer refers to ‘courts’ of the Member State concerned. One may therefore wonder whether the Directive requires a judicial remedy or not and whether the exclusion of a judicial remedy at the national level is in line with the Directive, or indeed Article 47 of the Charter and the general principles of EU law. <footnote role="fNote" id="B110000081">
                              <number>83</number>
                              <para style="footnotetext" id="B150000176"> –	See Hailbronner, K., and Gies, S., ‘Council Directive 2004/114/EC of 13 December 2004 on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service’, in Hailbronner, K., and Thym, D. (eds), <emphasis role="italc" id="B400000090">EU immigration and asylum law – a commentary</emphasis>, 2<emphasis role="suprscpt" id="B400000091">nd</emphasis> edition, C.H. Beck, Hart, Nomos, Munich, Oxford, Baden-Baden 2016, Articles 18 to 21, at point 8.</para>
                           </footnote> I would have my doubts that such an exclusion were possible, against the background of the clear wording of Article 47 of the Charter to provide an effective remedy to everyone whose rights and freedoms guaranteed by EU law are violated.</para>
                     </blockquote>
                     <blockquote id="B010000095">
                        <title id="B210000075">
                           <number>76.</number>
                        </title>
                        <para style="01PointAltN" id="B150000177">But that is not the question for the case at issue, given that such a remedy exists in Germany. As the preliminary reference demonstrates, there is a judicial procedure provided for at the national level. Moreover, judicial review of decisions taken by the administrative authorities tends to be very comprehensive in Germany in the sense that courts have full jurisdiction to review such decisions. <footnote role="fNote" id="B110000082">
                              <number>84</number>
                              <para style="footnotetext" id="B150000178"> –	In particular in comparison to other national legal orders, see von Danwitz, Th., <emphasis role="italc" id="B400000092">Europäisches Verwaltungsrecht</emphasis>, Springer, Berlin, Heidelberg, 2008, p. 589 et seq.</para>
                           </footnote> Such jurisdiction is, however, limited in cases where the administrative authorities enjoy a margin of discretion. <footnote role="fNote" id="B110000083">
                              <number>85</number>
                              <para style="footnotetext" id="B150000179"> –	Be it in the form of a ‘Beurteilungsspielraum’ or of ‘Ermessen’. See also von Danwitz, Th., loc. cit.</para>
                           </footnote>
                        </para>
                     </blockquote>
                     <blockquote id="B010000096">
                        <title id="B210000076">
                           <number>77.</number>
                        </title>
                        <para style="01PointAltN" id="B150000180">Judicial review which is, in principle, governed by national procedural law, in the context of procedural autonomy, must be effective. </para>
                     </blockquote>
                     <blockquote id="B010000097">
                        <title id="B210000077">
                           <number>78.</number>
                        </title>
                        <para style="01PointAltN" id="B150000181">While the national judge can naturally only determine whether the boundaries of the discretion which the Member State has exercised have been overstepped, it must nevertheless be in a position to review all procedural aspects as well as the material elements of the decision. An effective remedy requires that the national judge is in a position to assess whether the authorities complied with the requirements established above, i.e. whether they determined and investigated all relevant facts and why this individual is regarded as a threat to public security.</para>
                     </blockquote>
                     <blockquote id="B010000098">
                        <title id="B210000078">
                           <number>79.</number>
                        </title>
                        <para style="01PointAltN" id="B150000182">In this respect, it may be, as the German Government also points out, that predictions of a Member State in a matter such as the one at issue are based on information that can only be made public in a restricted manner so as not to endanger sources of information or the external policy interests of Member States. In this connection I should like to refer the Court to <emphasis role="italc" id="B400000093">Kadi and Al Barakaat International Foundation </emphasis>v <emphasis role="italc" id="B400000094">Council and Commission</emphasis>, <footnote role="fNote" id="B110000084">
                              <number>86</number>
                              <para style="footnotetext" id="B150000183"> –<emphasis role="tab" id="B400000095"/>Judgment of 3 September 2008 (C‑402/05 P and C‑415/05 P, EU:C:2008:461).</para>
                           </footnote> where the Court itself points to the relevant case-law of the ECtHR <footnote role="fNote" id="B110000085">
                              <number>87</number>
                              <para style="footnotetext" id="B150000184"> –	See judgment of ECtHR of 15 November 1996, No 22414/93, <emphasis role="italc" id="B400000096">Chahal</emphasis> <emphasis role="italc" id="B400000097">v.</emphasis> <emphasis role="italc" id="B400000098">the</emphasis> <emphasis role="italc" id="B400000099">United Kingdom,</emphasis> CE:ECHR:1996:1115JUD002241493, § 131.</para>
                           </footnote> that ‘it is … the task of the Community judicature to apply, in the course of the judicial review it carries out, techniques which accommodate, on the one hand, legitimate security concerns about the nature and sources of information taken into account in the adoption of the act concerned and, on the other, the need to accord the individual a sufficient measure of procedural justice’. <footnote role="fNote" id="B110000086">
                              <number>88</number>
                              <para style="footnotetext" id="B150000185"> –	See judgment of 3 September 2008, <emphasis role="italc" id="B400000100">Kadi and Al Barakaat International Foundation </emphasis>v <emphasis role="italc" id="B400000101">Council and Commission</emphasis> (C‑402/05 P and C‑415/05 P, EU:C:2008:461, paragraph 344).</para>
                           </footnote>
                        </para>
                     </blockquote>
                  </section>
               </section>
            </section>
         </C_Conc_Txt>
         <C_Conc_Conc>
            <section id="C000000000">
               <title style="03Titre1" id="C200000000">
                  <number>IV – </number>
                  <titlecontent id="C300000000">
                     <emphasis role="bold" id="C400000000">Conclusion</emphasis>
                  </titlecontent>
               </title>
               <blockquote id="C010000000">
                  <title id="C210000000">
                     <number>80.</number>
                  </title>
                  <para style="01PointAltN" id="C150000000">In the light of the foregoing considerations, I propose that the Court answer the questions referred by the Verwaltungsgericht Berlin (Administrative Court, Berlin, Germany) as follows:</para>
                  <blockquote id="C010000001">
                     <para style="15Margeretrait0" id="C150000001">(1)<emphasis role="tab" id="C400000001"/>When an authority of a Member State establishes whether a third-country national is regarded as a threat to public security under Article 6(1)(d) of Council Directive 2004/114/EC of 13 December 2004 on the conditions of admission of third-country nationals for the purposes of studies, pupil exchange, unremunerated training or voluntary service it shall, within the wide margin of discretion at its disposal,</para>
                     <itemizedlist id="C030000000">
                        <listitem id="C060000000">
                           <blockquote id="C010000002">
                              <title id="C210000001">
                                 <number>–</number>
                              </title>
                              <para style="11Tiretlong2" id="C150000002">comprehensively ascertain, determine and investigate all the relevant facts;</para>
                           </blockquote>
                        </listitem>
                        <listitem id="C060000001">
                           <blockquote id="C010000003">
                              <title id="C210000002">
                                 <number>–</number>
                              </title>
                              <para style="11Tiretlong2" id="C150000003">furnish concrete information as to why an individual is regarded as a threat to public security and</para>
                           </blockquote>
                        </listitem>
                        <listitem id="C060000002">
                           <blockquote id="C010000004">
                              <title id="C210000003">
                                 <number>–</number>
                              </title>
                              <para style="11Tiretlong2" id="C150000004">undertake a comprehensive weighing of all relevant interests.</para>
                           </blockquote>
                        </listitem>
                     </itemizedlist>
                  </blockquote>
                  <blockquote id="C010000005">
                     <para style="15Margeretrait0" id="C150000005">In such a situation, judicial review is limited to checking whether the boundaries of such discretion have been respected.</para>
                  </blockquote>
                  <blockquote id="C010000006">
                     <para style="15Margeretrait0" id="C150000006">(2)<emphasis role="tab" id="C400000002"/>A Member State is not precluded by Article 6(1)(d) of Directive 2004/114 from refusing to issue a visa to a third-country national, who obtained a university degree from an institution listed in a Council regulation as an entity involved in nuclear or ballistic missile activities and listed among persons and entities providing support to a third-country Government and who intends to undertake a research project in that Member State, when the authorities of that Member State have established that there is a risk that that third-country national will misuse knowledge acquired in that Member State for purposes which constitute a threat to the Member State’s external or internal security.</para>
                  </blockquote>
               </blockquote>
            </section>
         </C_Conc_Conc>
      </C_Conclusions>
   </Affaire>
</C_Doc_Ref>