title: Use message bundle in Java class with Seam
body: <p>I want to use my message bundle (messages_fr.properties) in a Java class with seam.</p>
  
  <p>In a jsf file, all work fine like this:</p>
  
  <pre><code>&lt;h2&gt;#{msg.newCustomer}&lt;/h2&gt;
  </code></pre>
  
  <p>But in my Java class, I tried to do this:</p>
  
  <pre><code>statusMessages.addToControlFromResourceBundle("refArbor", "#{messages['error_refArborDoesntExist']}");
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>statusMessages.addToControlFromResourceBundle("refArbor", "error_refArborDoesntExist");
  </code></pre>
  
  <p>or again this:</p>
  
  <pre><code>statusMessages.addToControlFromResourceBundle("refArbor", "#{msg.error_refArborDoesntExist}");
  </code></pre>
  
  <p>But the message showned is:</p>
  
  <p>error_refArborDoesntExist</p>
  
  <p>And not the real message.</p>
  
  <p>How can I use my bundle is a Java class ?</p>
  
  <p>Thanks.</p>