Can you instead use something like:
    `List<String> script = CharStreams.readLines(reader);`