Fix for IDENTITY-2053 provided by rajitha@wso2.com

Fix for IDENTITY-2053 provided by rajitha@wso2.com. This will load the property from user realm config if specified or otherwise will load the default.