RequestLog.record(new FeatureFlagRequest(flagName)); FeatureFlag flag = flags.forName(flagName); FeatureFlagEntry status = new FeatureFlagEntry(flag.getName(), flag.isOn());
); List<FeatureFlagEntry> status = flags.getValues().stream() .map(flag -> new FeatureFlagEntry(flag.getName(), flag.isOn())) .collect(Collectors.toList());