private String retrieveParamName(Field annotation) {
        String name;
        if (annotation.name().equals(DEFAULT)) {
            if (field != null) {
                name = field.getName();
            } else {
                String setterName = setter.getName();
                if (setterName.startsWith("set") && setterName.length() > 3) {
                    name = setterName.substring(3, 4).toLowerCase(Locale.ROOT) +
                            setterName.substring(4);
                } else {
                    name = setter.getName();
                }
            }
        } else {
            name = annotation.name();
        }
        return name;
    }
Sets given value to the annotated field of bean

@param bean  bean with annotation for field
@param value value of field
@throws IllegalAccessException    when it occurs
@throws InvocationTargetException when it occurs
tika-core/src/main/java/org/apache/tika/config/ParamField.java