requiredState = (other != null) ? other.getRequiredState() : ControllerState.INSTALLED;
if (actualState == null || states.isBeforeState(actualState, requiredState))
{
String requiredStateString = requiredState.getStateString();
MissingDependency missing = isAsynchInProgress ?
new MissingAsynchronousDependency(name, dependency, requiredStateString, actualStateString) :
new MissingDependency(name, dependency, requiredStateString, actualStateString);
dependencies.add(missing);
}
}
}
}