private void addField(String fieldName, String excelName, Field field, Class<?> fieldType,
                ExcelCellDataTransfer cellDataTransfer, ExcelCellValidator cellValidator) {
            if (this.classFieldMetas == null) {
                this.classFieldMetas = new ArrayList<>();
            }

            if (this.excelNameMetaMap == null) {
                this.excelNameMetaMap = new HashMap<>();
            }

            if (this.fieldNameMetaMap == null) {
                this.fieldNameMetaMap = new HashMap<>();
            }

            FieldMeta fieldMeta = new FieldMeta();
            fieldMeta.setName(fieldName);
            fieldMeta.setExcelName(excelName);
            fieldMeta.setFieldType(fieldType);
            fieldMeta.setCellDataTransfer(cellDataTransfer);
            fieldMeta.setCellValidator(cellValidator);
            fieldMeta.setField(field);
            this.fieldNameMetaMap.put(fieldName, fieldMeta);
            this.excelNameMetaMap.put(excelName, fieldMeta);
            this.classFieldMetas.add(fieldMeta);
        }
Create a ClassMeta object from a given template class.
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/tool/excel/ExcelTool.java