Date end = getEndDate(start, endStr);
Entity entityObject = EntityUtil.getEntity(type, entity);
Properties props = getProperties(request);
AbstractWorkflowEngine wfEngine = getWorkflowEngine();
return wfEngine.killInstances(entityObject, start, end, props);
} catch (Throwable e) {
LOG.error("Failed to kill instances", e);
throw IvoryWebException.newInstanceException(e, Response.Status.BAD_REQUEST);
}
}