title: How to set a resource property
body: <p>I have a Sling <a href="https://sling.apache.org/apidocs/sling6/org/apache/sling/api/resource/Resource.html"><code>Resource</code></a> object. What is the best way to set or update its property?</p>