} else if (node instanceof WorkItemNode) {
WorkItemWrapper workItemWrapper = new WorkItemWrapper();
Work work = ((WorkItemNode) node).getWork();
if (work != null && work.getName() != null) {
try {
WorkDefinition workDefinition =
WorkItemDefinitions.getWorkDefinitions(project)
.get(work.getName());
if (workDefinition == null) {
// DroolsEclipsePlugin.log(
// new IllegalArgumentException("Could not find work definition for work " + work.getName()));