title: Optional parameter in @PathParam annotation
body: <p>We are facing issue related with making a path parameter optional.</p>
  
  <p>original URL <code>/expire/{token}</code></p>
  
  <p>What we are trying to do is have the same service work for the URL's below.</p>
  
  <pre><code>   1. /expire/{token}
     2. /expire
  
  Ex:- @Path("/expire/{token}")
  </code></pre>
  
  <p>We have already applied other solutions from SO,but no luck so far.</p>