MutableBeanMetadata bean, Element data,
String propertyName,
Class<?> c) {
try {
Unmarshaller unmarshaller = getContext(c).createUnmarshaller();
MutableValueMetadata value = ctx.createMetadata(MutableValueMetadata.class);
value.setStringValue(unmarshaller.unmarshal(data, c).getValue().toString());
bean.addProperty(propertyName, value);
} catch (JAXBException e) {
LOG.warning("Unable to parse property " + propertyName + " due to " + e);
}
}