class FileConnection implements ObjectStoreConnection {

    @Override
    public Assertion getAssertion(String domainName, String policyName, Long assertionId) {
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "getAssertion");
        }
        Policy policy = getPolicyObject(domainStruct, policyName);
        if (policy == null) {
            return null;
        }
        List<Assertion> assertions = policy.getAssertions();
        if (assertions == null) {
            return null;
        }
        for (Assertion assertion : assertions) {
            if (assertion.getId().equals(assertionId)) {
                return assertion;
            }
        }
        return null;
    }

    public  FileConnection(File rootDir, File quotaDir);

}