title: Apache POI XSSFColor from hex code
body: <p>I want to set the foreground color of a cell to a given color in hex code. For example, when I try to set it to red:</p>
  
  <pre><code>style.setFillForegroundColor(new XSSFColor(Color.decode("#FF0000")).getIndexed());
  </code></pre>
  
  <p>No matter what Hex value I set in the parameter for the decode function, the getIndexed function will always return the black color.</p>
  
  <p>Could it be that I might be doing something wrong? I think it's a bug but I'm not sure...</p>