@PostConstruct
  public void init() {

    setId(
        Integer.valueOf(
            FacesContext.getCurrentInstance()
                .getExternalContext()
                .getRequestParameterMap()
                .get("id")));

    listRevises = dropDownServices.getAllGeneralInformation("revise");
    listBooks = dropDownServices.getAllGeneralInformation("bookNo");
    if (getId() == 0) {
      onNewRow();
    }
  }
  public void onOptionChosen(SelectEvent event) {

    String objectName =
        event.getObject().getClass().getName().replace("com.company.regis.db.entity.", "");

    if (objectName.equalsIgnoreCase("GeneralInformation")) {

      GeneralInformation item = (GeneralInformation) event.getObject();

      if (factorItem.equalsIgnoreCase("revise1Dialog")) {
        editObject.setRevise1(item.getInformation1());
        setListRevises(dropDownServices.getAllGeneralInformation("revise"));
      }

    } else if (objectName.equalsIgnoreCase("Employee")) {

    }
  }