}
private void addLimitingDependencyIfNeeded(Dependency d) {
if (d.isDependencyBetweenLimitedAllocatedTasks()
&& !d.hasLimitedQueueDependencyAssociated()) {
LimitingResourceQueueElement origin = calculateQueueElementFromDependency((Task) d
.getOrigin());
LimitingResourceQueueElement destiny = calculateQueueElementFromDependency((Task) d
.getDestination());
LimitingResourceQueueDependency queueDependency = LimitingResourceQueueDependency
.create(origin, destiny, d,
toQueueDependencyType(d.getType()));