add MessageReceiver.java file to receive incomming events