code: public String loadFromClassPath(String dataFile) {
          InputStream is = null;
          try {
  //            is = Thread.currentThread().getContextClassLoader().getResourceAsStream(dataFile);
              is = IoUtils.class.getResourceAsStream(dataFile);
              return toString(is);
          } catch (Throwable e) {
              throw new RuntimeException(String.format("Problem loading resource: '%s'" , dataFile), e);
          } finally {
              closeQuietly(is);
          }
      }
docs: /*
  public List<String> readLines(String source) {
  ByteArrayInputStream bais = new ByteArrayInputStream(source.getBytes(charSet));
  return readLines(new BufferedReader(new InputStreamReader(bais, charSet)));
  }
  
  private List<String> readLines(BufferedReader br) {
  List<String> result = new ArrayList<String>();
  try {
  for (String line; (line = br.readLine()) != null; ) {
  result.add(line);
  }
  return result;
  } catch (IOException e) {
  throw new RuntimeException(e);
  } finally {
  closeQuietly(br);
  }
  }