docs: public RiaNodeMemory createMemory(final RuleBaseConfiguration config, InternalWorkingMemory wm) {
          RiaNodeMemory rianMem = new RiaNodeMemory();
  
          RiaPathMemory pmem = new RiaPathMemory(this, wm);
          PathMemSpec pathMemSpec = getPathMemSpec();
          pmem.setAllLinkedMaskTest( pathMemSpec.allLinkedTestMask );
          pmem.setSegmentMemories( new SegmentMemory[pathMemSpec.smemCount] );
          rianMem.setRiaPathMemory(pmem);
          
          return rianMem;
      }