if (activationCondition instanceof CapabilityContextAware) {
((CapabilityContextAware) activationCondition).setContext(reference.context());
}
}
catch (Exception e) {
activationCondition = new UnsatisfiedCondition("Failed to determine activation condition");
log.error(
"Could not get activation condition from capability {} ({}). Considering it as non activatable",
reference.capability(), reference.context().id(), e
);
}