code: public static List<String> getResourceLines(String resourceName) throws IOException {
          InputStreamReader isreader = null;
          BufferedReader reader = null;
          try {
              isreader = new InputStreamReader(Util.class.getResourceAsStream(resourceName));
              reader = new BufferedReader(isreader);
              List<String> lines = new ArrayList<String>();
              String tmp;
              while ((tmp = reader.readLine()) != null) {
                  lines.add(tmp);
              }
              return lines;
          } finally {
              closeQuietly(reader);
              closeQuietly(isreader);
          }
      }
docs: Returns lines of text of a resource as list.
  
  @param resourceName name of resource
  @return list of text lines
  @throws java.io.IOException in case of IO error