docs: public static URL getResourceUrl(FacesContext ctx, String path) throws MalformedURLException
      {
          final ExternalContext externalContext = ctx.getExternalContext();
          URL url = externalContext.getResource(path);
          if (log.isLoggable(Level.FINE))
          {
              log.fine("Resource-Url from external context: " + url);
          }
          if (url == null)
          {
              // This might happen on Servlet container which doesnot return
              // anything
              // for getResource() (like weblogic 8.1 for packaged wars) we
              // are trying
              // to use an own URL protocol in order to use
              // ServletContext.getResourceAsStream()
              // when opening the url
              if (resourceExist(externalContext, path))
              {
                  url = getUrlForResourceAsStream(externalContext, path);
              }
          }
          return url;
      }