- /*
- * else make a copy of the list, and remove any null value just in case,
- * as it would cause errors looking up the features Map
- */
- List<String> types = new ArrayList<String>(Arrays.asList(type));
- types.remove(null);
+ List<FeatureStore> types = new ArrayList<>();
+ List<String> args = Arrays.asList(type);
+ for (Entry<String, FeatureStore> featureType : featureStore.entrySet())
+ {
+ if (args.contains(featureType.getKey()))
+ {
+ types.add(featureType.getValue());
+ }
+ }