This should be done outside the bounds of the controller. I will not allow for this branch to merge with Master! PLEASE, for utility methods, use a separate classes, one mistake and the whole Web App goes down and takes hours to fix.