}
public static void replace(final Map<String, String> replacements, final File file) throws IOException {
InputStream in = IO.read(file);
in = new ReplaceStringsInputStream(in, replacements);
final String data = IO.slurp(in);
IO.copy(data.getBytes(), file);