class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean updateEntity(String domainName, Entity entity) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "updateEntity");
        }
        if (domainStruct.getEntities() == null) {
            domainStruct.setEntities(new HashMap<>());
        }
        HashMap<String, Entity> entities = domainStruct.getEntities();
        entities.put(entity.getName(), entity);
        putDomainStruct(domainName, domainStruct);
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}