/** {@inheritDoc} */
  @Override
  public void doCreateUserFields(
      int nIdUser, List<MyLuteceUserField> listUserFields, Locale locale) {
    Plugin myLutecePlugin = PluginService.getPlugin(MyLutecePlugin.PLUGIN_NAME);

    for (MyLuteceUserField userField : listUserFields) {
      if ((userField != null) && !userField.getValue().equals(EMPTY_STRING)) {
        // Change the value of the user field
        // Instead of having the ID of the attribute field, we put the attribute field title
        // which represents the locale
        userField.setValue(userField.getAttributeField().getTitle());
        MyLuteceUserFieldHome.create(userField, myLutecePlugin);
      }
    }
  }