code: public File createFile(File dir, String filename) throws DataUtilException {
          if(dir == null) {
              throw new DataUtilException("The directory parameter can't be a null value");
          }
          try {
              File file = new File(dir, filename);
              return createFile(file);
          } catch (Exception e) {
              throw new DataUtilException("Invalid file: " + filename);
          }
      }
docs: Create a new tracked file
  @param dir file directory
  @param filename filename
  @return file new file
  @throws DataUtilException data util exception