Revert "Revert "Adding Back pr  #24 from GayashanNA/CARBON-14867""

This reverts commit 2622b963ec1187a9a133b6eae39340f9a6a843f3.
Merge pull request #34 from suhothayan/master

Adding pr  #24 from GayashanNA/CARBON-14867
Merge pull request #15 from wso2-dev/master

sucessfully commited the changes
Timestamp : Tue Sep 02 11:39:50 IST 2014
https://wso2.org/jenkins-pr-builder/job/carbon-event-processing/166/