code: public static Enumeration<URL> getResources(String resource) {
          Enumeration<URL> urls = null;
          try {
              urls = ClassUtils.getContextClassLoader().getResources(resource);
          } catch (IOException e) {
              //noop
          }
          if (urls == null) {
              try {
                  urls = IOUtils.class.getClassLoader().getResources(resource);
              } catch (IOException e) {
                  //noop
              }
          }
  
          if (urls == null) {
              URL url = IOUtils.class.getResource(resource);
              if (url != null) {
                  final Iterator<URL> it = Lists.newArrayList(url).iterator();
                  urls = new Enumeration<URL>() {
                      public boolean hasMoreElements() {
                          return it.hasNext();
                      }
  
                      public URL nextElement() {
                          return it.next();
                      }
                  };
              }
          }
  
          if (urls == null) {
              File file = new File(resource);
              if (file.isFile()) {
                  try {
                      final Iterator<URL> it = Lists.newArrayList(file.toURI().toURL()).iterator();
                      urls = new Enumeration<URL>() {
                          public boolean hasMoreElements() {
                              return it.hasNext();
                          }
  
                          public URL nextElement() {
                              return it.next();
                          }
                      };
                  } catch (MalformedURLException e) {
                      //no op
                  }
              }
          }
  
          return urls == null ? new Enumeration<URL>() {
              public boolean hasMoreElements() {
                  return false;
              }
  
              public URL nextElement() {
                  return null;
              }
          } : urls;
      }
docs: <p>getResources.</p>
  
  @param resource a {@link java.lang.String} object.
  @return a {@link java.util.Enumeration} object.