private boolean qualifiesForRevival(IntegrationEntity applicant) {
for (IntegrationEntity entity : toRevive) {
if (applicant == entity) {
continue;
}
IntegrationEntity parent = applicant.getParent();
while (parent != null && !(parent instanceof RootFolder)) {
if (toRevive.contains(parent)) {
return false;
}
parent = parent.getParent();
}
for (IntegrationEntity req : dependencyStore.getRequiredObjects(applicant)) {
if (toRevive.contains(req)) {
return false;
}