}
}
if (failoverPolicyFqn != null) {
try {
DistributedTaskFailoverPolicy failoverPolicy = Utils.instantiate(classLoader, failoverPolicyFqn);
taskBuilder = taskBuilder.failoverPolicy(failoverPolicy);
} catch (Exception e) {
log.error("Could not instantiate DistributedTaskFailoverPolicy class: " + failoverPolicyFqn, e);
}
}