/** * Returns the registered feature with the given name * * @param featureName unique name of the feature * @return feature with the given name */ public Feature getFeatureByName(String featureName) { for (Feature feature : getManager().getFeatures()) { if (feature.name().equals(featureName)) { return feature; } } return null; }