code: public static List<URL> getClasspathURLs(ClassLoader loader) {
          List<URL> urls = Lists.newArrayList();
          if (loader != null) {
              final Enumeration<URL> resources;
              try {
                  resources = loader.getResources("");
              } catch (IOException e) {
                  throw new RuntimeException(e);
              }
              while (resources.hasMoreElements()) {
                  URL location = resources.nextElement();
                  urls.add(location);
              }
          }
          return urls;
      }
docs: <p>getClasspathURLs.</p>
  
  @param loader a {@link java.lang.ClassLoader} object.
  @return a {@link java.util.List} object.