@Override
    public void loadSnapshot(Map<Uuid, StandardAcl> acls) {
        StandardAuthorizerData newData = StandardAuthorizerData.createEmpty();
        for (Map.Entry<Uuid, StandardAcl> entry : acls.entrySet()) {
            newData.addAcl(entry.getKey(), entry.getValue());
        }
        data = data.copyWithNewAcls(newData.getAclCache());
    }
The current data. We use a read-write lock to synchronize reads and writes to the data. We
expect one writer and multiple readers accessing the ACL data, and we use the lock to make
sure we have consistent reads when writer tries to change the data.
metadata/src/main/java/org/apache/kafka/metadata/authorizer/StandardAuthorizer.java