public void createBPMNShape( String key, GraphicInfo graphicInfo, ProcessDefinitionEntity processDefinition) { ActivityImpl activity = processDefinition.findActivity(key); if (activity != null) { createDIBounds(graphicInfo, activity); } else { org.activiti.engine.impl.pvm.process.Lane lane = processDefinition.getLaneForId(key); if (lane != null) { // The shape represents a lane createDIBounds(graphicInfo, lane); } else { bpmnModel.addProblem( "Invalid reference in 'bpmnElement' attribute, activity " + key + " not found", graphicInfo); } } }