@JsonIgnore
    public Optional<T> getValueAsOptional() {
        if (!hasOverride) {
            throw new RuntimeException("No override present");
        }
        return Optional.ofNullable(value);
    }
@return The override value if present or empty if the override has been explicitly set to
null/empty. If there is no override then a {@link RuntimeException} will be thrown.
Use {@link OverrideValue#isHasOverride()} to check if there is an override value.
stroom-core-shared/src/main/java/stroom/config/global/shared/OverrideValue.java