Issue #3: Use public API.
Issue #3: Same as getRelativePath().getPathString().
Issue #3: Extracted logic.
Issue #3: Not needed.
Issue #3: Simplified logic.
Issue #3: Unified parameter names.
Issue #3: Simplified logic.