The detail that foreshadows the revelation Gortsby receives at the end of the story is:
“He turned round sharply with an air of defensive hostility when he found Gortsby hailing him.”
This moment suggests that the youth may have something to hide, which aligns with the eventual revelation about his true situation at the end of the story.