if (!(descriptor instanceof ValidatorDescriptor))
{
throw new IllegalArgumentException("Descriptor must be a ValidatorDescriptor.");
}
ValidatorDescriptor validatorDescriptor = (ValidatorDescriptor) descriptor;
String value = (String) validatorDescriptor.getArgs().get(param);
if (value!=null && value.trim().length() > 0)
{
return value;
}