title: Invoking Liferay's themeDisplay object within freemarker template
body: <p>I need to access the themeDisplay object in a customized freemarker template.</p>
  
  <p>I tried to do it like this:</p>
  
  <pre><code>${themeDisplay.getLanguageId()} 
  </code></pre>
  
  <p>But i get the following error message:</p>
  
  <pre><code>Expression themeDisplay is undefined on line 208, column 18
  </code></pre>
  
  <p>I also tried to add this two lines in my portal-ext.properties but without success:</p>
  
  <pre><code>freemarker.engine.restricted.classes=
  freemarker.engine.restricted.variables=
  </code></pre>
  
  <p>Is there a successful approach for doing this ?</p>
  
  <p>Thank you very much. </p>