* @return Returns an argument exception.
*/
public static ArgumentException adaptPropertyException(PropertyException e,
AbstractManagedObjectDefinition<?, ?> d) {
if (e instanceof IllegalPropertyValueException) {
IllegalPropertyValueException pe = (IllegalPropertyValueException) e;
return adapt(d, pe);
} else if (e instanceof IllegalPropertyValueStringException) {
IllegalPropertyValueStringException pe =
(IllegalPropertyValueStringException) e;
return adapt(d, pe);