Added sample code for Spring events and Spring profiles.