@Override public String read(String id) { try { Path templateFile = getTemplateFile(id); return PathUtils.readFileToString(templateFile); } catch (IOException e) { throw new PersistenceException(e); } }
@Override public Collection<Path> listAllFiles() { return PathUtils.listAll(baseDirectory, "*.item"); }