public void addProjectKeys(Map<String, Key> projectKeys) {
        Map<String, ApiKeyData> apiKeyDataMap = new HashMap<>();
        for (Map.Entry<String, Key> entry : projectKeys.entrySet()) {
            String apiKey = entry.getKey();
            Key value = entry.getValue();
            validateProjectKey(value);
            value.setKey(apiKey);
            ApiKeyData apiKeyData = new ApiKeyData();
            apiKeyData.setOriginalKey(value);
            apiKeyDataMap.put(apiKey, apiKeyData);
            log.debug("Loading {}", value);
        }
        keys = apiKeyDataMap;
    }
Adds new project keys from the secure storage and removes previous project keys if any.
<p>
    Note. The method is blocking and shouldn't be run in the event loop thread.
</p>

@param projectKeys new projects to be added to the store.
server/src/main/java/com/epam/aidial/core/server/security/ApiKeyStore.java