/**
  * Set the property value by parsing a given String. May raise java.lang.IllegalArgumentException
  * if either the String is badly formatted or if this kind of property can't be expressed as text.
  *
  * @param text The string to be parsed.
  */
 public void setAsText(final String text) throws IllegalArgumentException {
   if (StringUtils.isEmpty(text)) {
     setValue(null);
     return;
   }
   try {
     setValue(valueConverter.toPropertyValue(text));
   } catch (BeanException e) {
     throw new IllegalArgumentException("This is not a valid property-value");
   }
 }