WorkItemDefinitions.getWorkDefinitions(project)
.get(work.getName());
if (workDefinition == null) {
// DroolsEclipsePlugin.log(
// new IllegalArgumentException("Could not find work definition for work " + work.getName()));
workDefinition = new WorkDefinitionImpl();
((WorkDefinitionImpl) workDefinition).setName(work.getName());
}
workItemWrapper.setWorkDefinition(workDefinition);
} catch (Throwable t) {
// an error might be thrown when parsing the work definitions,