public void startUpdate() {

    logger.debug("Entering startUpdate() method.");

    // Reloading the entity is required to be sure that the value has not changed since it was
    // read in the data table list of values.
    //
    LinguaConosciutaService ls = ServiceFactory.createService("LinguaConosciuta");
    selected = ls.retrieveDeep(selected.getId());

    id = selected.getId();
    codiceLingua = selected.getLingua() != null ? selected.getLingua().getId() : null;
    codiceLivelloLingua =
        selected.getLivelloLingua() != null ? selected.getLivelloLingua().getId() : null;
    note = selected.getNote();
  }