}
protected WorkflowInfo convert2Wfi(Workflow<?> wf) {
if (wf == null)
return null;
WorkflowInfo wfi = new WorkflowInfo();
wfi.setId(wf.getId());
wfi.setPriority(wf.getPriority());
wfi.setProcessorPoolId(wf.getProcessorPoolId());
wfi.setState(wf.getProcessingState().name());
wfi.setTimeout(null); // TODO
return wfi;
}