try {
writeMethod.invoke(target, value);
fireSetPostAction(target, this, value);
} catch (IllegalArgumentException e) {
if (value == null) {
throw new XWTException("Property type " + getName()
+ " of " + target.getClass().getName()
+ " cannot be null.", e);
}
throw new XWTException("Property type " + getName()
+ " of " + target.getClass().getName()
+ " is mismatch with "
+ value.getClass().getName()
+ " expected type is "
+ parameterTypes[0].getName(), e);
}
catch (InvocationTargetException e) {
throw new XWTException("Problem of invoke " + getName()
+ " of " + target.getClass().getName()
+ " with a value of type "
+ value.getClass().getName(), e);
}
}