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);
Iterator<Entry<String, String>> iterator =
description.entrySet().iterator();
while (iterator.hasNext()) {
Entry<String, String> entry = iterator.next();
PropertySpec property = xmlSender.addNewProperty();
property.setName(entry.getKey());
property.setValue(entry.getValue());
}
} catch (InvocationTargetException e) {
LOG.warn(e.getMessage(), e);