public Optional<String> getRoot() {
        return parentParts.isEmpty()
                ? Optional.empty()
                : Optional.of(parentParts.get(0));
    }
@return The root part unless it is an empty path
stroom-util-shared/src/main/java/stroom/util/shared/DocPath.java