Every BPMN can have a child element of the type extensionElements.This element can contain all sorts of extension elements. To access theextension elements you have to call the method and,if no such child element exists, you must create one first.

    You can also access a query-like interface to filter the extension elements.

    Another helper method exists for the fluent builder API which allows you to add prior defined extension elements.