code: public String replaceURLs(String line) {
          StringBuffer sb = new StringBuffer();
          Matcher matcher = URL_PATTERN.matcher(line);
          String newPath = "web/" + getResourceBase() + "/";
          
          while (matcher.find()) {
              char dlm = line.charAt(matcher.start() - 1);
              int i = line.indexOf(dlm, matcher.end());
              String url = i > 0 ? line.substring(matcher.start(), i) : null;
              
              if (url == null || (!mojo.isExcluded(url) && getTransform(url) != null)) {
                  matcher.appendReplacement(sb, newPath);
              }
          }
          
          matcher.appendTail(sb);
          return sb.toString();
      }
docs: Adjust any url references in the line to use new root path.
  
  @param line String to modify
  @return the modified string