protected void initCluster(TestUserMode userMode) throws XPathExpressionException {
contextMap = new HashMap<String, AutomationContext>();
AutomationContext automationContext = new AutomationContext("MB_Cluster", userMode);
log.info("Cluster instance loading");
Map<String, Instance> instanceMap = automationContext.getProductGroup().getInstanceMap();
if (instanceMap != null && instanceMap.size() > 0) {
for (Map.Entry<String, Instance> entry : instanceMap.entrySet()) {
String instanceKey = entry.getKey();
contextMap.put(instanceKey, new AutomationContext("MB_Cluster", instanceKey, userMode));
log.info(instanceKey);
}
}
stack = new Stack<String>();
}