code: public static List<URL> getResources(String resourceName, Class<?> callingClass) {
      Enumeration<URL> em = null;
      try {
        em = Thread.currentThread().getContextClassLoader().getResources(resourceName);
        if (!em.hasMoreElements()) {
          em = ClassLoaders.class.getClassLoader().getResources(resourceName);
          if (!em.hasMoreElements()) {
            ClassLoader cl = callingClass.getClassLoader();
            if (cl != null) em = cl.getResources(resourceName);
          }
        }
      } catch (IOException e) {
        e.printStackTrace();
      }
  
      List<URL> urls = CollectUtils.newArrayList();
      while (null != em && em.hasMoreElements()) {
        urls.add(em.nextElement());
      }
      return urls;
  
    }
docs: Load list of resource(Cannot start with slash /).
  <p/>
  This method will try to load the resource using the following methods (in order):
  <ul>
  <li>From {@link Thread#getContextClassLoader() Thread.currentThread().getContextClassLoader()}
  <li>From {@link Class#getClassLoader() ClassLoaders.class.getClassLoader()}
  <li>From the {@link Class#getClassLoader() callingClass.getClassLoader() }
  </ul>
  
  @param resourceName
  @param callingClass
  @return List of resources url or empty list.