class FileConnection implements ObjectStoreConnection {

    void updatePublicKeyEntry(ServiceIdentity service, PublicKeyEntry keyEntry) {

        // first we are going to remove the key from our array
        // if one already exists. If the keyList is null, then
        // we're going to create and set an empty list so
        // later we can add the new key entry object to that list

        if (service.getPublicKeys() == null) {
            service.setPublicKeys(new ArrayList<>());
        }
        List<PublicKeyEntry> keyList = service.getPublicKeys();
        removePublicKeyEntry(keyList, keyEntry.getId());
        
        // now let's add our new key to the list

        keyList.add(keyEntry);
    }

    public  FileConnection(File rootDir, File quotaDir);

}