@@ -0,0 +1,1691 @@
+package io.reactivesw.customer.server.common.types;%0A%0Aimport com.fasterxml.jackson.annotation.JsonUnwrapped;%0Aimport com.fasterxml.jackson.core.JsonProcessingException;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.databind.annotation.JsonSerialize;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * Created by Davis on 16/11/16.%0A */%0A@JsonSerialize%0Apublic class LocalizedString %7B%0A  /**%0A   * Object Mapper.%0A   */%0A  private final static ObjectMapper objectMapper = new ObjectMapper();%0A%0A  /**%0A   * The Localized.%0A   */%0A  @JsonUnwrapped%0A  private Map%3CString, String%3E localized;%0A%0A  /**%0A   * private contructor.%0A   */%0A  private LocalizedString() %7B%0A    if (localized == null) %7B%0A      localized = new HashMap%3C%3E();%0A    %7D%0A  %7D%0A%0A  /**%0A   * Gets localized.%0A   *%0A   * @return the localized%0A   */%0A  public Map%3CString, String%3E getLocalized() %7B%0A    return localized;%0A  %7D%0A%0A  /**%0A   * Sets localized.%0A   *%0A   * @param localized the localized%0A   */%0A  public void setLocalized(Map%3CString, String%3E localized) %7B%0A    this.localized = localized;%0A  %7D%0A%0A  /**%0A   * Get localized string string.%0A   *%0A   * @return the string%0A   */%0A  public String getLocalizedString() %7B%0A    String result = %22%22;%0A    try %7B%0A      result = objectMapper.writeValueAsString(localized);%0A    %7D catch (JsonProcessingException ex) %7B%0A      result = null;%0A    %7D%0A    return result;%0A  %7D%0A%0A  /**%0A   * Add key value string.%0A   *%0A   * @param key   the key%0A   * @param value the value%0A   * @return the string%0A   */%0A  public String addKeyValue(String key, String value) %7B%0A    localized.put(key, value);%0A    return getLocalizedString();%0A  %7D%0A%0A  /**%0A   * Clear.%0A   */%0A  public void clear() %7B%0A    localized.clear();%0A  %7D%0A%7D%0A

add common types