code: public static URL lookupAsset(String name, String file) {
          URL url = null;
  
          if (name.startsWith("/")) {
              name = name.substring(1);
          }
  
          if (name.endsWith("/")) {
              name = name.substring(0, name.lastIndexOf("/"));
          }
  
          if (name.equals("")) {
              name = ROOT_MAPPING_PATH;
          }
  
          if (file.startsWith("/")) {
              file = file.substring(1);
          }
  
          String[] dirs = assetsMap.get(name);
          if (dirs != null) {
              for (String dir : dirs) {
                  File f = FileUtils.getFile(dir, file);
                  if (f.exists() && f.isFile()) {
                      try {
                          url = f.getAbsoluteFile().toURI().toURL();
                      } catch (MalformedURLException e) {
                          //
                      }
                  }
                  if (url == null) {
                      url = IOUtils.getResource(dir + file);
                  }
                  if (url != null) {
                      break;
                  }
              }
          }
          return url;
      }
docs: <p>lookupAsset.</p>
  
  @param name a {@link java.lang.String} object.
  @param file a {@link java.lang.String} object.
  @return a {@link java.net.URL} object.