Observer pattern for showing facesmessages and factorypattern for logger with CDI.