class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean insertDomainTemplate(String domainName, String templateName, String params) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "insertDomainTemplate");
        }

        if (domainStruct.getTemplates() == null) {
            domainStruct.setTemplates(new ArrayList<>());
        }
        ArrayList<String> templates = domainStruct.getTemplates();
        if (!templates.contains(templateName)) {
            templates.add(templateName);
        }
        putDomainStruct(domainName, domainStruct);
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}