class ExcelFieldService {

    public static String getFieldName(final Class clazz, final Field field, final TranslateService translateService) {
        final ExcelExport excelExport = field.getAnnotation(ExcelExport.class);
        if (excelExport != null) {
            String label = null;
            if (excelExport.useTranslation()) {
                label = translateService.getTranslation(clazz, field);
            }
            if (!excelExport.name().isEmpty()) {
                if (StringUtils.isEmpty(label)) {
                    return excelExport.name();
                } else {
                    return excelExport.name() + " - " + label;
                }

            }
        }

        return field.getName();
    }

    private  ExcelFieldService();

}