BundleJob bundle = findLatestBundle(oldEntity, cluster);
if (bundle != MISSING) {
LOG.info("Updating entity through Workflow Engine" + newEntity.toShortString());
Date newEndTime = EntityUtil.getEndTime(newEntity, cluster);
if (newEndTime.before(now())) {
throw new FalconException("New end time for " + newEntity.getName()
+ " is past current time. Entity can't be updated. Use remove and add");
}
LOG.debug("Updating for cluster : " + cluster + ", bundle: " + bundle.getId());