class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean deleteDomainTemplate(String domainName, String templateName, String params) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "deleteDomainTemplate");
        }
        ArrayList<String> templates = domainStruct.getTemplates();
        if (templates == null) {
            return true;
        }
        templates.remove(templateName);
        putDomainStruct(domainName, domainStruct);
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}