/**
   * Generate few namespaces for this logging application. Resolve number of namespaces for this app
   * based on applicationNamespaceLength property and set them to LogFiles.
   *
   * @param logFileList input list of logFiles, which contain only filepath and package qualified
   *     name.
   * @return same list of logFiles, but each of them has filled appropriate namespace.
   */
  public static Set<LogFile> generateNamespaces(Set<LogFile> logFileList) {
    LOG.applicationNamespaceLength(Utils.getApplicationNamespaceLength()).trace();
    for (LogFile lf : logFileList) {
      if (lf.getPackageName() == null) {
        LOG.emptyPackageNameInFile(lf.getFilepath()).error();
      }
      String namespace = createNamespace(lf.getPackageName());
      LOG.new_namespace(namespace).trace();
      lf.setNamespace(namespace);
    }

    return logFileList;
  }