for (File template : keyDir.listFiles()) {
Matcher m = PATTERN.matcher(template.getName());
if (m.matches()) {
try {
templates.add(new Template().setKey(key).setVersion(Version.valueOf(m.group(1).toUpperCase()))
.setLocale(m.group(2) == null ? null : new Locale(m.group(2)))
.setType(Type.valueOf(m.group(3).toUpperCase()))
.setLastModified(new Date(template.lastModified()))
.setContent(StreamUtils.string(FileUtils.in(template, Compression.NONE))));
} catch (IOException e) {