class FileUtil {

  public static Set<String> getJarFilePathsForResources(ClassLoader _cl, String[] _resources) {
    final Set<String> jar_paths = new HashSet<String>();
    if (_cl != null && _resources != null) {
      for (String r : _resources) {
        final URL u = _cl.getResource(r);
        if (u != null) {
          final String jar_path = FileUtil.getJarFilePath(u.toString());
          if (jar_path != null) {
            jar_paths.add(jar_path);
          }
        }
      }
    }
    return jar_paths;
  }

}