private void deleteFile(String fileName) {
    if (!streamProvider.delete(getSpec(fileName), RoamingType.DEFAULT)) {
      try {
        Files.delete(templateDir.resolve(fileName));
      }
      catch (IOException e) {
        LOG.error(e);
      }
    }
  }
private void deleteFile(String fileName)