@Override
    public void getClient(String apiKey, IAsyncResultHandler<Client> handler) {
        delegate.getClient(apiKey, result -> {
            if (result.isSuccess()) {
                Client client = result.getResult();
                if (client != null) {
                    for (Contract contract : client.getContracts()) {
                        decryptPolicies(client.getOrganizationId(), client.getClientId(), client.getVersion(),
                                EntityType.ClientApp, contract.getPolicies());
                    }
                }
            }
            handler.handle(result);
        });
    }
@see io.apiman.gateway.engine.IRegistry#getClient(java.lang.String, io.apiman.gateway.engine.async.IAsyncResultHandler)
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/SecureRegistryWrapper.java