The reason for moving this code into a separate collector class was, that this was located in a protected method of the ToolbarListener class and I wanted to use it in the FirePhpListerner class also. Duplicating code is of course not good, so I thought the ToolbarListerner class could use this collector class also later.