code: private static boolean checkLib(final File f, String basename) {
          boolean fExists = System.getSecurityManager() == null ? f.exists() : AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
              @Override
              public Boolean run() {
                  return f.exists();
              }
          });
          return fExists &&
                 (f.getName().equals(basename) || (isWindows(basename) && f.getName().equalsIgnoreCase(basename)));
      }
docs: Check if the given file's name matches the given library basename.
  
  @param f The file to check.
  @param basename The basename to compare the file against.
  
  @return true if the file exists and its name matches the given basename.
  false otherwise.