if (mdx != null && mdx.length() > 0 && mdx.toUpperCase().contains("FROM")) {
SelectNode select =
mdxParser.parseSelect(getMdx());
select = mdxValidator.validateSelect(select);
CubeType cubeType = (CubeType) select.getFrom().getType();
return cubeType.getCube();
}
} catch (Exception e) {
LOG.debug("Parsing MDX to get the Cube failed. Using fallback scenario.", e);
}
try {