final MDXCompiler compiler = new MDXCompiler(parameters, getLocale());
final String mdxQuery = compiler.translateAndLookup(rawMdxQuery, parameters);
// Alternatively, JNDI is possible. Maybe even more ..
final Query query = connection.parseQuery(mdxQuery);
final Statement statement = query.getStatement();
final int queryTimeoutValue = calculateQueryTimeOut(parameters);
if (queryTimeoutValue > 0)
{
statement.setQueryTimeoutMillis(queryTimeoutValue * 1000);
}
parametrizeQuery(parameters, query);
//noinspection deprecation