I really don't like the fact we are doing this kind of logic in the handler, what are you trying to accomplish with this? Is there not another way?