how is this relevant to pilots?
I can be as keen on the "driver, airframe" approach as the next pilot on occasions but certainly our Ops manual (and national law) makes it very clear that the aircraft commander is responsible for making sure that passengers and crew comply with local customs and immigration procedures - especially in the case of a diversion.
Now that may well be delegated to a local handling agent but it's worth knowing who might end carrying at least part of the blame if the agents stuff up...or don't show up at all.