public class LoggedInObserver implements javax.enterprise.event.Observer<LoggedInEvent>
{
public void notify(LoggedInEvent event)
{
User user = event.getUser();
System.out.println("User with user name : " + user.getUserName());
System.out.println("User with password : " + user.getPassword());
}