/**
   * @param param0
   * @return KmResponseType
   */
  public KmResponseType getKmByParams_runtime(KmRequestType param0) {

    KmResponseType response = new KmResponseType();
    ResponseListType responseList = new ResponseListType();
    try {
      responseList = KnowledgeModuleDAO.getInstance().findByParamsForRuntime(param0);
      response.setResponseList(responseList);
      if (param0.getRequest().getRequestReference() != null) {
        response.setRequestReference(
            this.buildRequestRef(param0.getRequest().getRequestReference()));
      }
    } catch (Exception e) {
      log.error("FAILED getKmByParams_runtime(), caught " + e.getMessage());
      e.printStackTrace();
    }
    return response;
  }
  /**
   * findKmId - Given a set of params, filter on it and locate all mathcing KM_IDs.
   *
   * @param param0
   * @return FindKmIdsResponseType
   */
  public FindKmIdsResponseType findKmIds(KmRequestType param0) {
    FindKmIdsResponseType response = new FindKmIdsResponseType();
    FindKmIdsResponseListType kms = new FindKmIdsResponseListType();

    try {
      // -----------------------------------
      // getting a list of all <KM> elements
      // -----------------------------------
      kms = KnowledgeModuleDAO.getInstance().findKmIds(param0);

      response.setResponse(kms);
      if (param0.getRequest().getRequestReference() != null) {
        response.setRequestReference(
            this.buildRequestRef(param0.getRequest().getRequestReference()));
      }
    } catch (Exception e) {
      log.error("FAILED findKmIds(), caught " + e.getMessage());
      e.printStackTrace();
    }

    return response;
  }