code: @Override
      public DataFileIndex indexNamespace(final String resourceLocation,
              final File rawNamespaceFile) throws IndexingFailure {
  
          final File outputPath = rawNamespaceFile.getParentFile();
          final String home = outputPath.getAbsolutePath();
          String nsHome = asPath(home, NAMESPACE_ROOT_DIRECTORY_NAME);
  
          File nsRoot = new File(nsHome);
          nsRoot.mkdir();
  
          NamespaceHeaderProcessor proc = new NamespaceHeaderProcessor();
          File hdrFile = proc.processNamespaceHeader(
                  resourceLocation, rawNamespaceFile, nsRoot);
  
          long characterStopOffset = proc.getCharacterStopOffset();
  
          final String nsVersionPath = hdrFile.getParent();
          String nsIdxLoc = asPath(nsVersionPath, "namespace.index");
  
          Indexer namespaceIndexer = new Indexer();
          namespaceIndexer.indexNamespaceFile(characterStopOffset,
                  rawNamespaceFile,
                  nsIdxLoc);
  
          return new DataFileIndex(resourceLocation, nsIdxLoc, hdrFile);
      }
docs: {@inheritDoc}