Registering bean and PhaseListener programmatically