private List<String> fileToLines(String filename) {
            List<String> lines = new LinkedList<String>();
            String line = "";
            try {
                    BufferedReader in = new BufferedReader(new FileReader(filename));
                    while ((line = in.readLine()) != null) {
                            lines.add(line+"\n");
                    }
                    in.close();
            } catch (IOException e) {
                    e.printStackTrace();
        			logger.error(e.getMessage());
            }
            return lines;
    }