private Optional<Path> apiKeyPath(String tenant) {
        if (!isNullOrBlank(apiKeyFile)) return Optional.of(Paths.get(apiKeyFile));

        Path cliApiKeyFile = Optional.ofNullable(System.getenv("VESPA_CLI_HOME"))
                                     .map(Paths::get)
                                     .orElseGet(() -> Paths.get(System.getProperty("user.home"), ".vespa"))
                                     .resolve(tenant + ".api-key.pem");
        if (Files.exists(cliApiKeyFile)) return Optional.of(cliApiKeyFile);

        return Optional.empty();
    }
Return the name of the relevant entity, e.g., application with or without instance.
vespa-maven-plugin/src/main/java/ai/vespa/hosted/plugin/AbstractVespaMojo.java