code: public static Map<String, List<ExtensionElement>> getExtensionElements(DelegateExecution execution) {
          if (isExecutingExecutionListener(execution)) {
              return getListenerExtensionElements(execution);
          } else {
              return getFlowElementExtensionElements(execution);
          }
      }
docs: Returns for the activityId of the passed {@link DelegateExecution} the
  {@link Map} of {@link ExtensionElement} instances. These represent the
  extension elements defined in the BPMN 2.0 XML as part of that particular
  activity.
  <p>
  If the execution is currently being used for executing an
  {@link ExecutionListener}, the extension elements of the listener will be
  used. Use the {@link #getFlowElementExtensionElements(DelegateExecution)}
  or {@link #getListenerExtensionElements(DelegateExecution)} instead to
  specifically get the extension elements of either the flow element or the
  listener.