code: public static Map toMap(final Object value, final Locale locale) {
          return builder().locale(locale).build().mapper().convertValue(value, LinkedHashMap.class);
      }
docs: Returns a serialized version of the object as a Map.
  
  @param value
  object value
  @param locale
  target locale
  @return serialized version of the object as a Map.