Refactored code to align with JSF prototype listener & added groovydoc.