List<Template> template = this.templateService.findTemplate(directoryUuid);
if(template!=null && template.size()>0){
template =
template.stream().sorted(Comparator.comparing(Template::getCreateDate).reversed()).collect(Collectors.toList());
}