public SimpleSparqlSimulator(String endpoint) throws MalformedURLException {
	// read the list of files of queries
	sparql_queries = new ArrayList<File>();

	URL url = getClass().getResource("/");

	LOGGER.info("Reading queries (txt files) from " + url.getPath()
		+ SimpleSparqlSimulator.class.getName());
	File dir = new File(url.getPath()
		+ SimpleSparqlSimulator.class.getName());

	if (dir.isDirectory()) {
	    for (final File fileEntry : dir.listFiles()) {
		if (fileEntry.isFile())
		    if (fileEntry.getName().endsWith(".txt"))
			sparql_queries.add(fileEntry);
	    }

	} else
	    LOGGER.error("Not a directory");

	this.endpoint = new URL(endpoint);
    }