if(level == null) continue;
String measure = (String)linkSB.getAttribute("MEASURE");
logger.debug("add link: " + hierarchyName + "->" + levelName + "->" + measure);
Link link = new Link();
List parameters = linkSB.getAttributeAsList("PARAM");
for(int j = 0; j < parameters.size(); j++) {
SourceBean parameterSB = (SourceBean)parameters.get(j);
String type = (String)parameterSB.getAttribute("TYPE");
String scope = (String)parameterSB.getAttribute("SCOPE");
String name = (String)parameterSB.getAttribute("NAME");
String value = (String)parameterSB.getAttribute("VALUE");
link.addParameter(type, scope, name, value);
}
level.setLink(measure, link);
}
}