@SuppressWarnings("unchecked")
private void handlePatchName(PatchNameWidget widget,
PatchParams patchParams, String name, ISender sender,
IParamModel paramModel) throws IllegalAccessException,
NoSuchFieldException {
StringParamSpec stringParamSpec = patchParams.addNewStringParamSpec();
stringParamSpec.setName(name);
Integer field =
getField("patchNameSize", int.class, widget,
PatchNameWidget.class);
IPatchStringSender patchNameSender =
getField("sender", IPatchStringSender.class, widget,
PatchNameWidget.class);
stringParamSpec.setLength(field.intValue());
stringParamSpec.setUuid(generateUuid());
if (sender != null) {
StringSenderSpec xmlSender = stringParamSpec.addNewStringSender();
xmlSender
.setStringSenderClass(patchNameSender.getClass().getName());
try {
Map<String, String> description =
BeanUtils.describe(patchNameSender);