Refactor of MyFaces action listener