if (hostDemandRep == null) hostDemandRep = "";
Map<RESOURCE_TYPE,Double> demands = LoadInfo.parseDemandString(hostDemandRep);
Artifact artifact = actionDec.getImplementingArtifact();
if (artifact != null) { // update loads
ArtifactDecorator artifactDec = (ArtifactDecorator) decFactory.getDecorator(artifact);
LoadInfo loadInfo = loadInfos.get(artifactDec.getDeploymentDevice());
if (loadInfo == null) {
loadInfo = new LoadInfo(artifactDec.getDeploymentDevice());
loadInfos.put(loadInfo.getTargetDevice(), loadInfo);
}
loadInfo.updateLoad(demands);
}
} catch (InvalidContextException e) { // never happens