title: Determine runmode in Adobe CQ
body: <p>How do I programmatically know which run-mode the instance is running? I created a custom tag that provides the config depending on the instance run-mode, but I can not determine the current run-mode.<br>
  I found a method that returns a list of run-mods instance:</p>
  
  <pre><code>SlingSettings settings = ...get from BundleContext...
  Set&lt;String&gt; currentRunModes = settings.getRunModes();
  </code></pre>
  
  <p>But I can not get the objects SlingSettings or BundleContext. How can I get these objects or perhaps there is another way to get the current run-mode?</p>