converted = converter.convert(value, type);
if (converted == null)
{
if (value != null)
{
throw new ConversionException("Method [" + getMethod +
"]. Can't convert value: " + value + " to class: " +
getMethod.getReturnType() + " for setting it on " + object);
}
else if (getMethod.getReturnType().isPrimitive())
{
throw new ConversionException("Method [" + getMethod +
"]. Can't convert null value to a primitive class: " +
getMethod.getReturnType() + " for setting it on " + object);
}
}
}