public Importable translate(
     Node resourceNode, Document descriptor, String contextPath, String archiveBasePath) {
   String url = XPathHelper.getNodeValue("/CONTENT/URL/@value", descriptor);
   String title =
       XPathHelper.getNodeValue("/CONTENT/TITLE/@value", descriptor).replaceAll("/", "_");
   try {
     contextPath = contextPath + java.net.URLEncoder.encode(url, "UTF-8");
   } catch (UnsupportedEncodingException e) {
     return null;
   }
   String description = XPathHelper.getNodeValue("/CONTENT/BODY/TEXT", descriptor);
   int priority = Integer.parseInt(((Element) resourceNode).getAttribute("priority"));
   WebLink link = new WebLink();
   link.setUrl(url);
   link.setTitle(title);
   link.setSequenceNum(priority);
   link.setContextPath(contextPath);
   link.setDescription(description);
   link.setAbsolute(url.indexOf("://") > -1);
   return link;
 }