Modified the generator and the momentum objects to allow proper generation.
Introduced OGNL to make variable references easier to use.
Authored by: calmera 2008-08-20
Parent: [r117]
Child: [r119]