private FeatureInfo getFeatureInfo ( String name , Map < String , ProductInfo > productInfos , Map < String , FeatureInfo > featuresBySymbolicName ) { String productName , featureName ; int index = name . indexOf ( ' ' ) ; if ( index == - 1 ) { FeatureInfo featureInfo = featuresBySymbolicName . get ( name ) ; if ( featureInfo != null ) { return featureInfo ; } productName = ManifestFileProcessor . CORE_PRODUCT_NAME ; featureName = name ; } else { productName = name . substring ( 0 , index ) ; featureName = name . substring ( index + 1 ) ; } ProductInfo product = productInfos . get ( productName ) ; return product == null ? null : product . featuresByShortName . get ( featureName ) ; }
Gets a feature by its name using the server . xml featureManager algorithm .