for(int axis = 0; axis < er.getAxisCount(); axis++){
for (int i = 0; i < er.getTupleCount(axis); i++) {
for (int j = 0; j < er.getAxis("Axis" + axis).getTupleAt(i).getMemberCount() ; j++) {
//Lines Modified By Prakash
Member member=er.getAxis("Axis" + axis).getTupleAt(i).getMemberAt(j);
addToLevels(member.getLname());
String QMExp=member.getQueryMembersExpression();
String HUName=member.getHierarchyUniqueName();
QueryElement qe = new QueryElementImpl(QMExp,HUName);
//End of the modification done by Prakash.
//Commented by Prakash.
if (qe.getHierarchyUniqueName().toLowerCase().indexOf("measures") > 0 )
{