}
final VolumeInfo dvi = volumeInfo;
if (dvi == null) {
return;
}
final DrbdXml dxml = clusterBrowser.getDrbdXml();
final String hostName = getHost().getName();
final DrbdGraph drbdGraph = getBrowser().getDrbdGraph();
Value value = null;
final String volumeNr = dvi.getName();
for (final String param : getParametersFromXML()) {
if (DRBD_MD_PARAM.equals(param)) {
final String metaDisk = dxml.getMetaDisk(hostName, resName, volumeNr);
if (value == null || !"internal".equals(value.getValueForConfig())) {
final BlockDevInfo mdI = drbdGraph.findBlockDevInfo(hostName, metaDisk);
if (mdI != null) {
getBlockDevice().setMetaDisk(mdI.getBlockDevice());
}
}
value = new StringValue(metaDisk);
} else if (DRBD_MD_INDEX_PARAM.equals(param)) {
value = new StringValue(dxml.getMetaDiskIndex(hostName, resName, volumeNr));
}
final Value defaultValue = getParamDefault(param);
if (value == null) {
value = defaultValue;
}