code: public ExecutionReference getReference(final int executionId) {
      if (hasExecution(executionId)) {
        return this.queuedFlowMap.get(executionId).getFirst();
      }
      return null;
    }
docs: Fetch Activereference for an execution. Returns null, if execution not in queue