@SneakyThrows
    private static Credentials getCredentialsFromJsonKeyFile(String filename) {
        String fileContents = Files.asCharSource(new File(filename), UTF_8).read();
        GoogleCredentialsFromJson credentialSupplier = new GoogleCredentialsFromJson(fileContents);
        return credentialSupplier.get();
    }
@param identity client email address
@param credential could be private key or path to JSON file where the private resides
storage/src/main/java/com/epam/aidial/core/storage/blobstore/credential/GcpCredentialProvider.java