/** * Returns the id of the deployed application, or the default value if not explicitly set (self-hosted). */ private static ApplicationName getDeployedApplicationId(DeployState deployState, AbstractConfigProducer ancestor) { return getContainerCluster(ancestor) .map(cluster -> deployState.getProperties().applicationId().application()) .orElse(ApplicationId.defaultId().application()); }