if (file.getName().endsWith(".js")) { this.addFileToList(file.getAbsolutePath()); return; }
    public void parse(File file) throws JammerException {                if (!file.exists()){            throw new JammerException("File " + file + " does not exist");        }        BufferedReader br = null;        try {            br = new BufferedReader(new FileReader(file));                    String fileContents = FileUtils.readFully(br, 1024);            int startJamBlockIndex =                 fileContents.indexOf(this.beginBlockToken);            String filesString = null;            int endJamBlockIndex = -1 ;            if (startJamBlockIndex != -1){                endJamBlockIndex = fileContents.indexOf(this.endBlockToken,                                                        startJamBlockIndex);                if (endJamBlockIndex != -1) {                    filesString = fileContents.substring(startJamBlockIndex,                                                         endJamBlockIndex);                } else {                    throw                         new JammerException(                            file                            + ": Jammed script block not terminated properly");                }                //bw = new BufferedWriter(new FileWriter (jspTempFile));                //bw.write(fileContents.substring(0, startJamBlockIndex));            } else {                br.close();                return;            }            this.parseScriptBlock(filesString);        } catch (IOException ie){            throw new JammerException(ie);        } finally {            try {                if (br != null){                    br.close();                }            } catch (IOException e) {                // do nothing            }        }    }