public static IExtraLanguageConversionInitializer getTypeConverterInitializer ( ) { return it -> { final List < Pair < String , String > > properties = loadPropertyFile ( TYPE_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 String baseName ; final Matcher matcher = TYPE_NAME_PAT . matcher ( source ) ; if ( matcher . find ( ) ) { baseName = matcher . group ( 1 ) ; } else { baseName = source ; } it . apply ( baseName , source , target ) ; } } } ; }
Replies the initializer for the type converter .