code: protected URL getNearTemplateURL(String jarFile, String template) {
          if (jarFile != null) {
              Enumeration<URL> urls = IOUtils.getResources(template);
              while (urls.hasMoreElements()) {
                  URL url = urls.nextElement();
                  if (url.getPath().startsWith(jarFile)) {
                      return url;
                  }
              }
          }
          return null;
      }
docs: <p>getNearTemplateURL.</p>
  
  @param jarFile a {@link java.lang.String} object.
  @param template a {@link java.lang.String} object.
  @return a {@link java.net.URL} object.