// @Override protected IntermediateThrowEvent createProcessElement(GenericShape shape) throws BpmnConverterException { try { IntermediateThrowEvent itEvent = (IntermediateThrowEvent) this.invokeCreatorMethod(shape); itEvent.setId(shape.getResourceId()); itEvent.setName(shape.getProperty("name")); return itEvent; } catch (Exception e) { /* Wrap exceptions into specific BPMNConverterException */ throw new BpmnConverterException( "Error while creating the process element of " + shape.getStencilId(), e); } }