class FeatureCollection {

    public Optional<IFeature> get(String code) {
        if (this.availableFeatures.containsKey(code)) {
            return Optional.of(this.availableFeatures.get(code));
        }
        return Optional.empty();
    }

      FeatureCollection();
      FeatureCollection(Map<String, IFeature> allFeatures);

}