Reading of Kafka’s Trial in light of Foucault’s writings

The Trial seems to suggest that we as a society willingly accept surveillance, create our stereotypes, accept registries of discipline and so forth and refuse to accept that it is us doing all these things. We blame it on the other, we "transfer" our own negative traits on to others and then blame them. This is our societies "shadow".