Object currentValue = wsResourceClient.getPropertyAsObject(propertyQName,newValue.getClass());
// 10a) If the property is not set (value is null) then an "Insert" request must be sent.
if (currentValue == null || Array.getLength(currentValue) == 0)
{
wsResourceClient.insertResourceProperty(propertyQName,inputParameters);
}
// 10b) If the property is not null then an "Update" request must be sent.
else
{
wsResourceClient.updateResourceProperty(propertyQName,inputParameters);