public void writeApplicationRoles(ApplicationId application, ApplicationRoles applicationRoles) {
        try {
            Slime slime = new Slime();
            ApplicationRolesSerializer.toSlime(applicationRoles, slime.setObject());
            curator.set(applicationRolesPath(application), SlimeUtils.toJsonBytes(slime));
        } catch (Exception e) {
            throw new RuntimeException("Could not write application roles of " + application, e);
        }
    }
Writes the application roles to ZooKeeper
configserver/src/main/java/com/yahoo/vespa/config/server/tenant/ApplicationRolesStore.java