If I have a node, the name of a property and a single value, how can I determine if I need to add the value to an array and use the multivalue setter or not? Using getProperty(propertyName).getDefinition().isMultiple() won't work since the property may not exist (it was set to null...PathNotFoundException). Invoking setProperty(propertyName, value) and catching the ValueFormatException doesn't work since you don't know if the exception came from the property being multivalued or from a conversion error. Iterating over the propertyDefinitions from the nodetype (and mixins) isn't efficient. What's the recommended way to determine whether to use the multivalue or single value setProperty method?
David
