code: private Map<String, Code> parseCodes(Document dc, Map<String, Scope> scopes) {
          Map<String, Code> codes = new HashMap<String, Code>();
          NodeList codeNodeList = dc.getDocumentElement().getElementsByTagNameNS(SCHEMA_LOCATION, TAG_CODE);
          for (int i = 0; i < codeNodeList.getLength(); i++) {
              Code code = parseCode((Element) codeNodeList.item(i), scopes);
              codes.put(code.getName(), code);
          }
          return codes;
      }
docs: Parse codes from XML
  
  @param dc DOM document with configuration
  @return codes
  @throws TextProcessorFactoryException any problem