public void assignValue(Object bean, Object value)
            throws IllegalAccessException, InvocationTargetException {
        if (field != null) {
            field.set(bean, value);
        } else {
            setter.invoke(bean, value);
        }
    }
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