Ok, I know it's been a while, but here is my workaround.
1) I created a array of GumpButtons to be more easy to find/add/remove the entities;
2) I created a class (inside the gump; it could be static variables or a structure, but I did this way) to persist some data that I wanted to reuse;
3)...