HSSFColor ncolor = palette.addColor(r, g, b);
return ncolor;
} catch (RuntimeException ex) {
//try to create a fullcolor if not a built in palette color
FullColorExt fullColor = new FullColorExt(red, green, blue);
return new HSSFColorExt(fullColor);
}
}
}
}