docs: public static String mapToID(final String aPtPath) throws InvalidPathException {
          final String encapsulatingDir = getEncapsulatingDir(aPtPath);
  
          String id = aPtPath;
  
          if (id.endsWith(Character.toString(mySeparator))) {
              id = id.substring(0, id.length() - 1);
          }
  
          if (encapsulatingDir != null) {
              id = id.substring(0, id.length() - encapsulatingDir.length());
          }
  
          id = id.replace(Character.toString(mySeparator), "");
          id = decodeID(id);
  
          return id;
      }