public void update() {
   selectedStakeHolder.setAddress(getSelstakeHoldAddr());
   selectedStakeHolder.setDob(new java.sql.Date(getSelstakeHoldDob().getTime()));
   selectedStakeHolder.setEmail(getSelstakeHoldEmail());
   selectedStakeHolder.setPanNo(getSelstakeHoldPan());
   selectedStakeHolder.setStakeHolderName(getSelstakeHoldName());
   selectedStakeHolder.setCompany(getCompany());
   companyService.update(selectedStakeHolder);
   setGrowlMessage("Update", "Update Successfull");
 }
  public void save() {

    StakeHolder stkholder = new StakeHolder();
    stkholder.setAddress(getStakeHoldAddr());
    stkholder.setDob(new java.sql.Date(getStakeHoldDob().getTime()));
    stkholder.setEmail(getStakeHoldEmail());
    stkholder.setPanNo(getStakeHoldPan());
    stkholder.setStakeHolderName(getStakeHoldName());
    stkholder.setCompany(getCompany());
    stkholder.setUser(getPrefBean().getUser());
    companyService.create(stkholder);
    stakeHolder.add(stkholder);
    clearValues();
    setGrowlMessage("Save", "Insert Successfull");
    setEditing(false);
  }