+ " " + propQName + " properties." );
}
if ( isReadOnly( propQName ) )
{
throw new UnableToModifyResourcePropertyFaultException( "The property " + propQName
+ " is read-only - it cannot be updated." );
}
refreshProperty( propQName );
XmlObject[] currentPropXBeans;
try
{
currentPropXBeans = getPropertyXmlBeans( propQName );
}
catch ( Exception e )
{
e.printStackTrace( );
throw new SetResourcePropertyRequestFailedFaultException( "Failed to update property " + propQName );
}
if ( currentPropXBeans.length == 0 )
{
throw new UnableToModifyResourcePropertyFaultException( "Property " + propQName
+ " is not set and hence cannot be updated. Try calling Insert instead." );
}
XmlObject[] newPropXBeans = XmlBeansUtils.toXmlObjectArray( requestPropElems );
backendDelete( propQName );