if (!nameIsSafe(result)) return false;
try {
InputStream in = openInput(template, templateURL);
// Should we read some flag in the file to decide whether
// or not to use an InterpolatingFilter?
in = new InterpolatingFilter(in, getDataRepository(), getPrefix());
OutputStream out = new FileOutputStream(result);
copyFile(in, out);
return true;
} catch (IOException ioe) { }
return false;