try {
if(value != null) {
NSNumberFormatter f = ERXNumberFormatter.numberFormatterForPattern(cellFormatName);
Number numberValue = (Number)f.parseObject(value.toString());
if(log.isDebugEnabled()) {
log.debug(f.pattern() + ": " + numberValue);
}
if(numberValue != null) {
cell.setCellValue(numberValue.doubleValue());
}
}