code: private static InputStream findFileInClasspath(String fileName) {
  
  		InputStream is = null;
  
  		try {
  
  			ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
  			is = classLoader.getResourceAsStream(fileName);
  			return is;
  
  		} catch (Exception ex) {
  
  			log.error(String.format("Error while reading file '%s' from classpath", fileName), ex);
  			return null;
  		}
  
  	}
docs: Finds a file by name in classpath
  
  @param fileName
  @return