Code refectoring:
Use the 'map' collection method to transform one collection into an other and give up on side-effects used with foreach, whenever possible. That results in cleaner code.
Authored by: artes 2012-07-02
Parent: [r5391]
Child: [r5393]