More servlet utils for picking path segments.