Fixing CARBON-14690

Signed-off-by: Jayanga Dissanayake <jsdjayanga@yahoo.com>
Merge pull request #2 from jsdjayanga/CARBON-14690

Fixing CARBON-14690
Refactored the module to deprecated API methods
Merge pull request #3 from wso2-dev/master

sucessfully commited the changes
Timestamp : Thu Sep 25 17:16:10 IST 2014
https://wso2.org/jenkins-pr-builder/job/carbon-multitenancy/152/