code: public boolean accepts(URL url)
     {
        if (url == null || !(url.toExternalForm().endsWith(".war") || url.toExternalForm().endsWith(".war/")))
           return false;
  
        return true;
     }
docs: {@inheritDoc}