private static CellStyle getCellStyleFromSourceCell ( final Sheet destSheet , final Cell sourceCell ) { Workbook wb = destSheet . getWorkbook ( ) ; // Copy style from old cell and apply to new cell CellStyle newCellStyle = wb . createCellStyle ( ) ; newCellStyle . cloneStyleFrom ( sourceCell . getCellStyle ( ) ) ; return newCellStyle ; }
create cell style from source cell .