class FeatureService {

    public List<FeatureDTO> listAll() {
        return this.featureCollection.list().stream()
                .map(feature -> new FeatureDTO(feature.getCode(), this.featureActivator.getState(feature.getCode())))
                .collect(Collectors.toList());
    }

}