String stringKey = evaluation.getNode().getStringValue();
ActionBean bean = (ActionBean) evaluation.getExpressionEvaluation().getBean();
Locale locale = bean.getContext().getLocale();
Collection errors = new ArrayList<ValidationError>();
TypeConverter tc = StripesFilter.getConfiguration()
.getTypeConverterFactory().getTypeConverter(declaredType, locale);
// If there is a type converter, try using it!
if (tc != null) {
Object retval = tc.convert(stringKey, declaredType, errors);
if (errors.size() == 0) return retval;
}
// Otherwise look for a String constructor
else {
Constructor c = declaredType.getConstructor(String.class);