public void dispose(){
  setMapBean(null);
  setLayout(null);
  removeAll();
}

public void dispose ( ) { setMapBean ( null ) ; setLayout ( null ) ; removeAll ( ) ; }
sets the mapbean variable to null and removes all children .
