His situation of intensifying anxiety, already an unalterable fact at his awakening, corresponds to Georg's after his sentence. Also both men are guilty: like Georg in 'The judgment,' Gregor Samsa (note the similarity of first names) is guilty of having cut himself off from his true self - long before his actual metamorphosis - and, to the extent he has done so, he is excluded from his family.
Kafka wrote 'The Metamorphosis' at the end of 1912, soon after he finished 'The judgment,' and it is worth noting that the two stories have much in common: a businessman and bachelor like Georg Bendemann of 'The judgment,' Gregor Samsa is confronted with an absurd fate in the form of a 'gigantic insect,' while Georg is confronted by absurdity in the person of his father.