public String getFormatString(int formatIndex) {String format = null;if (formatIndex >= HSSFDataFormat.getNumberOfBuiltinBuiltinFormats()) {FormatRecord tfr = _customFormatRecords.get(Integer.valueOf(formatIndex));if (tfr == null) {logger.log( POILogger.ERROR, "Requested format at index " + formatIndex+ ", but it wasn't found");} else {format = tfr.getFormatString();}} else {format = HSSFDataFormat.getBuiltinFormat((short) formatIndex);}return format;}

public String GetFormatString(int formatIndex){String format = null;if (formatIndex >= HSSFDataFormat.NumberOfBuiltinBuiltinFormats){FormatRecord tfr = (FormatRecord)customFormatRecords[formatIndex];if (tfr == null){logger.Log(POILogger.ERROR, "Requested format at index " + formatIndex + ", but it wasn't found");}else{format = tfr.FormatString;}}else{format = HSSFDataFormat.GetBuiltinFormat((short)formatIndex);}return format;}
