Grader - extracted processUrl method