title: Packages not defined
body: <p>i wrote a script in javascript and used it in rules (share). The script start with:</p>
  
  <pre><code>var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext();
  </code></pre>
  
  <p>I m getting an error telling me that "Reference error: Packages is not defined".</p>
  
  <p>How can i solve this issue?</p>