public static IAttributeMerger getAttributeMerger ( final String mergingPolicy ) { switch ( mergingPolicy . toLowerCase ( ) ) { case "multivalued" : case "multi_valued" : case "combine" : return new MultivaluedAttributeMerger ( ) ; case "add" : return new NoncollidingAttributeAdder ( ) ; case "replace" : case "overwrite" : case "override" : return new ReplacingAttributeAdder ( ) ; default : return new BaseAdditiveAttributeMerger ( ) { @ Override protected Map < String , List < Object > > mergePersonAttributes ( final Map < String , List < Object > > toModify , final Map < String , List < Object > > toConsider ) { return new LinkedHashMap <> ( toModify ) ; } } ; } }
Gets attribute merger .