svn commit:198280 and 201892 Improved XML stream based JSON parser to handle ref complex element and Fixing DS-891 by Anjana