@ JsonAnySetter public void handleJsonArrayToJavaString ( String name , Object value ) { try { PropertyUtils . setProperty ( this , name , this . convertListToString ( value ) ) ; } catch ( IllegalAccessException e ) { log . debug ( "Error setting field " + name + " with value " + value + " on entity " + this . getClass ( ) . getSimpleName ( ) ) ; this . additionalProperties . put ( name , value ) ; } catch ( InvocationTargetException e ) { log . debug ( "Error setting field " + name + " with value " + value + " on entity " + this . getClass ( ) . getSimpleName ( ) ) ; this . additionalProperties . put ( name , value ) ; } catch ( NoSuchMethodException e ) { log . debug ( "Error setting field " + name + " with value " + value + " on entity " + this . getClass ( ) . getSimpleName ( ) ) ; this . additionalProperties . put ( name , value ) ; } }
Unknown properties are handled here . One main purpose of this method is to handle String values that are sent as json arrays if configured as multi - values in bh .