title: Customize Java Tapestry @IncludeStylesheet annotation
body: <p>Using Tapestry 5, I'm looking at a (if possible) elegant way to customize the <code>@IncludeStylesheet</code> annotation in order to automatically add a version number to the style sheet file name.</p>
  
  <p>For instance</p>
  
  <pre><code>  @IncludeStylesheet("context:/css/decoration.css")
  </code></pre>
  
  <p>would generate automatically the CSS inclusion with a <code>v</code>ersion number</p>
  
  <pre><code>  &lt;link href="/css/decoration.css?v=12345" rel="stylesheet" type="text/css"&gt;
  </code></pre>
  
  <p>Adding a new annotation, like <code>@IncludeStylesheetVersion</code> was my initial idea.<br/>
  Looking at the Tapestry code, it looks like I'm ahead of some code copy / refactoring, with new implementations of <code>RenderSupport</code> and <code>DocumentLinker</code> (among others).</p>
  
  <p>Would there be a simpler way to proceed?</p>