This logic is applicable only for web context menu. I'm thinking of putting it in ActionUtil.processAndIterate...; this way, both web and mobile would benefit.