class FeatureService {

    public DetailledFeatureDTO find(String code) throws NotFoundException {
        return this.featureCollection.get(code)
                .map(feature -> new DetailledFeatureDTO(
                        feature.getCode(),
                        this.featureActivator.getState(feature.getCode()),
                        feature.getName(),
                        feature.getDescription()))
                .orElseThrow(() -> throwFeatureDontExists(code));
    }

}