{
value = method.invoke(obj);
}
catch (IllegalAccessException e)
{
throw new WriterException(e);
}
catch (InvocationTargetException e)
{
throw new WriterException(e.getCause());
}
PartType partType = method.getAnnotation(PartType.class);
String filename = getFilename(method);
multipart.addFormData(param.value(), value, method.getReturnType(), method.getGenericReturnType(), MediaType.valueOf(partType.value()), filename);