Exp exp,
Set<RolapCube> baseCubes,
List<RolapCube> baseCubeList)
{
if (exp instanceof MemberExpr) {
MemberExpr memberExpr = (MemberExpr) exp;
Member member = memberExpr.getMember();
if (member instanceof RolapStoredMeasure) {
addMeasure(
(RolapStoredMeasure) member, baseCubes, baseCubeList);
} else if (member instanceof RolapCalculatedMember) {
findMeasures(member.getExpression(), baseCubes, baseCubeList);