title: Creating Sling Models from resource paths
body: <p>I would like to instantiate a Sling Model from a JSP using a path to a resource like</p>
  
  <pre><code>&lt;sling:adaptTo adaptable="/path/to/my/resource"  adaptTo="org.apache.sling.models.it.models.MyModel" var="model"/&gt;
  </code></pre>
  
  <p>Within the the Sling Model, I would like to access properties of the specified resource via <code>@ValueMapValue</code> annotations.</p>
  
  <p>My question is, how can I adapt my Sling Model to a resource path String so that I can inject the properties of the specified resource?</p>