/** Performs main indexing operation.
* @param path The path to index.
* @return The region array generated from parsing. */
@Override
public Region[] index(String path) {
MainFrame mainFrame = MainFrame.getMainFrame();
try {
this.path = path;
this.dialog = new PasswordRequestFrame(path, mainFrame);
return saveIndex();
} catch (Throwable e) {