code: protected void initNameSpaces(General general, List<Ns> namespaceList) {
      namespaces = new LinkedHashMap<String, Ns>();
      namespacesById = new LinkedHashMap<Integer, Ns>();
      namespacesByCanonicalName = new LinkedHashMap<String, Ns>();
      for (Ns namespace : namespaceList) {
        String namespacename = namespace.getValue();
        namespaces.put(namespacename, namespace);
        namespacesById.put(namespace.getId(), namespace);
        String canonical = namespace.getCanonical();
        // this is a BUG in 2015-07-02 - some canonical names are not correct
        // FIXME - when Bug has been fixed in SMW
        String bugs[] = { "Attribut", "Property", "Konzept", "Concept","Kategorie","Category" };
        for (int i = 0; i < bugs.length; i += 2) {
          if (bugs[i].equals(canonical) && bugs[i].equals(namespacename)) {
            canonical = bugs[i + 1];
            namespace.setCanonical(bugs[i + 1]);
          }
        }
        namespacesByCanonicalName.put(canonical, namespace);
      }
    }
docs: initialize the NameSpaces from the given namespaceList
  
  @param general
  @param namespaceList