code: private static File getFile(File dirPath, String name) {
          if (dirPath != null && dirPath.isDirectory()) {
              File myFile = new File(dirPath, name);
              if (myFile.exists())
                  return myFile;
          }
          return null;
      }
docs: Internal method: performs test common to
  {@link #findFileInNamedPath(String, List)}
  and {@link #findFileInFilePath(String, Collection)
  
  @param dirPath
  Directory to check for named file
  @param name
  The name of the file to find
  @return The File object if the file is found;
  null if the dirPath is null, does not exist, or is not a directory.