public static Map < String , Object > configureObjectFieldsWithProperties ( final Object object , final List < Property > properties , final Map < String , Object > inputConfig ) { HashMap < String , Object > modified = new HashMap <> ( inputConfig ) ; for ( final Property property : properties ) { if ( null != modified . get ( property . getName ( ) ) ) { if ( setValueForProperty ( property , modified . get ( property . getName ( ) ) , object ) ) { modified . remove ( property . getName ( ) ) ; } } } return modified ; }
Set field values on an object given a list of properties and input values for those properties