doAfterCompose instead of constructor. When doAfterCompose is run, we are sure we are ready to send messages to the client side. FEA: ItEr76S04BugFixing