protected Stream GetDataFile(string name) { try { var resourceLoader = new ClasspathResourceLoader(this.GetType(), "Lucene.Net"); return resourceLoader.OpenResource(name); } catch (Exception e) { throw new IOException("Cannot find resource: " + name); } }