public static InfraApplication infraApplication(NodeType nodeType) {
        return switch (nodeType) {
            case controllerhost -> new ControllerHostApplication();
            case controller -> new ControllerApplication();
            case confighost -> new ConfigServerHostApplication();
            case config -> new ConfigServerApplication();
            case proxyhost -> new ProxyHostApplication();
            case proxy -> new ProxyApplication();
            case host -> new TenantHostApplication();
            default -> throw new IllegalArgumentException("Infrastructure application not defined for node type " + nodeType);
        };
    }
Returns the hosts from the input list which are not retired
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningTester.java