public static Map < String , Object > toMap ( final Iterable < PluginProperty > ... propertiesLists ) { final Map < String , Object > mergedProperties = new HashMap < String , Object > ( ) ; for ( final Iterable < PluginProperty > propertiesList : propertiesLists ) { if ( propertiesList != null ) { for ( final PluginProperty pluginProperty : propertiesList ) { if ( pluginProperty != null && pluginProperty . getKey ( ) != null ) { mergedProperties . put ( pluginProperty . getKey ( ) , pluginProperty . getValue ( ) ) ; } } } } return mergedProperties ; }
Last one has precedence