}
/** Generates a new instance from an hRaven {@link Flow}. */
private static WorkflowSummary toWorkflowSummary(Flow flow) {
WorkflowId id = toWorkflowId(flow);
return new WorkflowSummary(id.toId(), flow.getUserName(), flow.getFlowName(),
Status.valueOf(flow.getQueueKey().getStatus().name()), flow.getProgress(),
id.getTimestamp());
}