Class elementClass = metaData.getElementClass();
if (componentValue instanceof String) {
String stringValue = (String) componentValue;
Converter converter = metaData.getConverter();
if (converter != null) {
convertedValue = converter.decode(stringValue,
metaData.getDecodeFormat());
} else if (metaData.getElementClass() == String.class) {
convertedValue = componentValue;
}
}