class FileConnection implements ObjectStoreConnection {

    @Override
    public List<TemplateMetaData> getDomainTemplates(String domainName) {
        TemplateMetaData templateDomainMapping;
        List<TemplateMetaData> templateDomainMappingList = new ArrayList<>();
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "getDomainTemplates");
        }

        List<TemplateMetaData> metaDataList = domainStruct.getTemplateMeta();
        if (metaDataList != null) {
            templateDomainMapping = new TemplateMetaData();
            for (TemplateMetaData meta :metaDataList) {
                templateDomainMapping.setTemplateName(meta.getTemplateName());
                templateDomainMapping.setCurrentVersion(meta.getCurrentVersion());
                templateDomainMappingList.add(templateDomainMapping);
            }
        }
        return templateDomainMappingList;
    }

    public  FileConnection(File rootDir, File quotaDir);

}