logger.debug("DataSecurityManager::setMondrianRole: processing dimension named: " + dimName);
//List dimMembs = drb.getMembers();
logger.debug("DataSecurityManager::setMondrianRole: try to search the dimension into the cube");
Dimension[] dimensions = cube.getDimensions();
for (int i = 0; i < dimensions.length; i++) {
Dimension dim = dimensions[i];
String cubeDimKey = dim.getName();
if(cubeDimKey.equalsIgnoreCase(dimName)) {
logger.debug("DataSecurityManager::setMondrianRole: dimension found into the cube");
mondrian.olap.Hierarchy[] hierarchies = dim.getHierarchies();
if(hierarchies == null || hierarchies.length == 0) {
if(dimAccess.equalsIgnoreCase("none")) {
connRole.grant(dim, Access.NONE);
logger.debug("DataSecurityManager::setMondrianRole: setted access.none to the dimension");
} else {