public Optional<Flavor> getFlavor(String name) {
        return Optional.ofNullable(configuredFlavors.get(name));
    }
Returns a flavor by name, or empty if there is no flavor with this name.
config-provisioning/src/main/java/com/yahoo/config/provision/NodeFlavors.java