public static IExtraLanguageConversionInitializer getFeatureNameConverterInitializer ( ) { return it -> { final List < Pair < String , String > > properties = loadPropertyFile ( FEATURE_CONVERSION_FILENAME ) ; if ( ! properties . isEmpty ( ) ) { for ( final Pair < String , String > entry : properties ) { final String source = Objects . toString ( entry . getKey ( ) ) ; final String target = Objects . toString ( entry . getValue ( ) ) ; final Matcher matcher = FEATURE_NAME_PAT . matcher ( source ) ; final String featureName ; if ( matcher . find ( ) ) { featureName = matcher . group ( 1 ) ; } else { featureName = source ; } it . apply ( featureName , source , target ) ; } } } ; }
Replies the initializer for the feature name converter .