public void solve() {
    String fileName = FileUtil.getFileName(inFile);
    File outFolderFile = new File(outFolder);
    File outFile = new File(outFolderFile, fileName);
    if (!outFile.isFile()) {
      if (!outFolderFile.isDirectory()) {
        outFolderFile.mkdirs();
      }
      InputStream resource = null;
      FileOutputStream outputStream = null;
      try {
        outFile.createNewFile();
        resource = getClass().getClassLoader().getResourceAsStream(inFile);
        outputStream = new FileOutputStream(outFile);
        FileUtil.copyStreams(resource, outputStream);
      } catch (IOException e) {
        throw new SeleniumException(e.getMessage(), e);
      } finally {
        try {
          outputStream.close();
        } catch (Exception e) {
        }
        try {
          resource.close();
        } catch (Exception e) {
        }
      }
    }
  }