/**
  * Get the current directory index for the given configuration item.
  *
  * @return the current directory index for the given configuration item.
  */
 int getCurrentDirectoryIndex() {
   AllocatorPerContext context = obtainContext(contextCfgItemName);
   return context.getCurrentDirectoryIndex();
 }