code: protected ListenersModel toListenersModel(Listener[] listenerAnnotations, KnowledgeNamespace knowledgeNamespace) {
          if (listenerAnnotations == null || listenerAnnotations.length == 0) {
              return null;
          }
          ListenersModel listenersModel = new V1ListenersModel(knowledgeNamespace.uri());
          for (Listener listenerAnnotation : listenerAnnotations) {
              ListenerModel listenerModel = new V1ListenerModel(knowledgeNamespace.uri());
              listenerModel.setClazz(listenerAnnotation.value());
              listenersModel.addListener(listenerModel);
          }
          return listenersModel;
      }
docs: Converts listener annotations to listeners model.
  
  @param listenerAnnotations annotations
  @param knowledgeNamespace knowledgeNamespace
  @return model