code: public static Collection<PathCategory> imports(Media configPathfinding)
      {
          Check.notNull(configPathfinding);
  
          final Xml nodeCategories = new Xml(configPathfinding);
          final Collection<Xml> childrenTile = nodeCategories.getChildren(TILE_PATH);
          final Collection<PathCategory> categories = new HashSet<>(childrenTile.size());
  
          for (final Xml node : childrenTile)
          {
              final String name = node.readString(CATEGORY);
              final Collection<Xml> childrenGroup = node.getChildren(TileGroupsConfig.NODE_GROUP);
              final Collection<String> groups = new HashSet<>(childrenGroup.size());
  
              for (final Xml groupNode : childrenGroup)
              {
                  groups.add(groupNode.getText());
              }
  
              final PathCategory category = new PathCategory(name, groups);
              categories.add(category);
          }
  
          return categories;
      }
docs: Import the category data from configuration.
  
  @param configPathfinding The pathfinding descriptor (must not be <code>null</code>).
  @return The categories data.
  @throws LionEngineException If unable to read data.