code: public static boolean accept(String fName, String name, Version min, Version max) {
          if (fName.startsWith(name + "_") && fName.toLowerCase().endsWith(".jar")) {
              if (min == null || max == null)
                  return true;
              int i = fName.indexOf("_");
              String versionStr = fName.substring(i + 1, fName.length() - 4);
              Version v = Version.createVersion(versionStr);
              if (v == null)
                  return true;
              return v.compareTo(min) >= 0 && v.compareTo(max) < 0;
          }
          return false;
      }
docs: This method compares the fName with name for a match and checks if it is a jar file
  The file is accepted if either min/max is null or the newly created Version is null
  
  @param fName - file name
  @param name - string value
  @param min - Version
  @param max - Version
  @return boolean value depending on acceptance