private static void setValue ( Object value , Field field , Object destination , GenericXml genericXml , Map < String , Object > destinationMap , String name ) { if ( field != null ) { FieldInfo . setFieldValue ( field , destination , value ) ; } else if ( genericXml != null ) { genericXml . set ( name , value ) ; } else { destinationMap . put ( name , value ) ; } }
Sets the value of a given field or map entry .