Move code of TypesBean in MenuBean and GenericTreeBean.
Rename TreeBean in GenericTreeBean.