;Produces("application/widgets+xml")
 public class WidgetResource {

     &#064;GET
     public String getWidget(&#064;PathParam("widgetid") String id) {
         return getWidgetAsXml(id);
     }

     &#064;PUT
     public void updateWidget(&#064;PathParam("widgetid") String id,
                              Source update) {
         updateWidgetFromXml(id, update);
     }

     ...
 }
 </pre></div>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- 