private boolean isDeleteUnsupportedTask(Task task) {
    return task instanceof ServerActionTask
      && DeleteUnsupportedServicesAndComponents.class.getName().equals(((ServerActionTask)task).getImplementationClass());
  }
The {@link ComponentsExistInRepoCheck} is used to determine if any of the
components scheduled for upgrade do not exist in the target repository or
stack.
ambari-server/src/main/java/org/apache/ambari/server/checks/ComponentsExistInRepoCheck.java