code: public static void main(String[] args) throws IOException, RDF4JException, TrustyUriException {
  		String batchFile = args[0];
  
  		BufferedReader reader = new BufferedReader(new FileReader(batchFile));
  		int startFrom = 0;
  
  		File runningFile = new File(batchFile + ".running");
  		if (runningFile.exists()) {
  			startFrom = new Integer(readFile(runningFile)) + 1;
  			System.out.println("===");
  			System.out.println("RESUMING at line " + startFrom);
  			System.out.println("===");
  		} else {
  			writeFile(runningFile, startFrom + "");
  		}
  
  		String line;
  		int lineNumber = -1;
  		while ((line = reader.readLine()) != null) {
  			line = line.trim();
  			if (line.isEmpty() || line.charAt(0) == '#') continue;
  			lineNumber = lineNumber + 1;
  			if (startFrom > lineNumber) continue;
  			writeFile(runningFile, lineNumber + "");
  			System.out.println("COMMAND: " + line);
  			String[] cmd = line.split("\\s+");
  			long ns = System.nanoTime();
  			try {
  				Run.run(cmd);
  			} catch (Exception ex) {
  				ex.printStackTrace();
  			} catch (OutOfMemoryError err) {
  				err.printStackTrace();
  				System.exit(99);
  			}
  			long t = System.nanoTime() - ns;
  			System.out.println("Time in seconds: " + t/1000000000.0);
  			System.out.println("---");
  		}
  		reader.close();
  		runningFile.delete();
  	}
docs: no instances allowed